Package info.u_team.u_team_core.menu
Class FluidSlot
java.lang.Object
info.u_team.u_team_core.menu.FluidSlot
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
net.minecraftforge.fluids.FluidStack
getFluid()
com.mojang.datafixers.util.Pair<net.minecraft.resources.ResourceLocation,
net.minecraft.resources.ResourceLocation> int
int
int
getX()
int
getY()
boolean
hasFluid()
boolean
isActive()
boolean
mayPlace
(net.minecraftforge.fluids.FluidStack stack) void
set
(net.minecraftforge.fluids.FluidStack stack) setBackground
(net.minecraft.resources.ResourceLocation atlas, net.minecraft.resources.ResourceLocation sprite) Sets the background atlas and sprite location.void
-
Field Details
-
index
public int index
-
-
Constructor Details
-
FluidSlot
-
-
Method Details
-
mayPlace
public boolean mayPlace(net.minecraftforge.fluids.FluidStack stack) -
getFluid
public net.minecraftforge.fluids.FluidStack getFluid() -
hasFluid
public boolean hasFluid() -
set
public void set(net.minecraftforge.fluids.FluidStack stack) -
setChanged
public void setChanged() -
getSlotCapacity
public int getSlotCapacity() -
getRemainingSlotCapacity
public int getRemainingSlotCapacity() -
getFluidHandler
-
getContainerSlot
public int getContainerSlot() -
getX
public int getX() -
getY
public int getY() -
isActive
public boolean isActive() -
setBackground
public FluidSlot setBackground(net.minecraft.resources.ResourceLocation atlas, net.minecraft.resources.ResourceLocation sprite) Sets the background atlas and sprite location.- Parameters:
atlas
- The atlas namesprite
- The sprite located on that atlas- Returns:
- this
-
getNoItemIcon
public com.mojang.datafixers.util.Pair<net.minecraft.resources.ResourceLocation,net.minecraft.resources.ResourceLocation> getNoItemIcon()
-