public class SidedInventoryComponent<T extends IComponentHarness> extends InventoryComponent<T> implements IFacingComponent
IFacingComponent.FaceMode| Constructor and Description |
|---|
SidedInventoryComponent(java.lang.String name,
int xPos,
int yPos,
int size,
int position) |
| Modifier and Type | Method and Description |
|---|---|
void |
deserializeNBT(net.minecraft.nbt.CompoundNBT nbt) |
SidedInventoryComponent<T> |
disableFacingAddon() |
int |
getColor() |
java.awt.Color |
getColorForSlotRendering(int slot) |
int |
getFacingHandlerX() |
int |
getFacingHandlerY() |
java.util.HashMap<FacingUtil.Sideness,IFacingComponent.FaceMode> |
getFacingModes() |
java.awt.Rectangle |
getRectangle(IAsset asset) |
java.util.List<IFactory<? extends IScreenAddon>> |
getScreenAddons() |
IFacingComponent.FaceMode[] |
getValidFacingModes() |
net.minecraft.nbt.CompoundNBT |
serializeNBT() |
SidedInventoryComponent<T> |
setColor(net.minecraft.item.DyeColor color) |
SidedInventoryComponent<T> |
setColor(int color) |
SidedInventoryComponent<T> |
setFacingHandlerPos(int x,
int y) |
SidedInventoryComponent<T> |
setValidFaceModes(IFacingComponent.FaceMode... validFaceModes) |
boolean |
work(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction blockFacing,
int workAmount) |
extractItem, getComponentHarness, getContainerAddons, getExtractPredicate, getInsertPredicate, getItemStackForSlotRendering, getName, getOnSlotChanged, getSlotLimit, getSlotPosition, getSlotToColorRenderMap, getSlotVisiblePredicate, getXPos, getXSize, getYPos, getYSize, insertItem, isColorGuiEnabled, isItemValid, onContentsChanged, setColorGuiEnabled, setComponentHarness, setInputFilter, setOnSlotChanged, setOutputFilter, setRange, setSlotLimit, setSlotLimit, setSlotPosition, setSlotToColorRender, setSlotToColorRender, setSlotToColorRender, setSlotToItemStackRender, setSlotVisiblePredicate, setXPos, setYPosgetSlots, getStackInSlot, getStackLimit, onLoad, setSize, setStackInSlot, validateSlotIndexclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNamecanInteractpublic SidedInventoryComponent(java.lang.String name,
int xPos,
int yPos,
int size,
int position)
public SidedInventoryComponent<T> disableFacingAddon()
public java.util.HashMap<FacingUtil.Sideness,IFacingComponent.FaceMode> getFacingModes()
getFacingModes in interface IFacingComponentpublic int getColor()
getColor in interface IFacingComponentpublic SidedInventoryComponent<T> setColor(int color)
public SidedInventoryComponent<T> setColor(net.minecraft.item.DyeColor color)
public java.awt.Color getColorForSlotRendering(int slot)
getColorForSlotRendering in class InventoryComponent<T extends IComponentHarness>slot - Slot to get the Render Color forpublic java.awt.Rectangle getRectangle(IAsset asset)
getRectangle in interface IFacingComponentpublic int getFacingHandlerX()
getFacingHandlerX in interface IFacingComponentpublic int getFacingHandlerY()
getFacingHandlerY in interface IFacingComponentpublic boolean work(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.Direction blockFacing,
int workAmount)
work in interface IFacingComponentpublic SidedInventoryComponent<T> setFacingHandlerPos(int x, int y)
setFacingHandlerPos in interface IFacingComponentpublic IFacingComponent.FaceMode[] getValidFacingModes()
getValidFacingModes in interface IFacingComponentpublic SidedInventoryComponent<T> setValidFaceModes(IFacingComponent.FaceMode... validFaceModes)
public net.minecraft.nbt.CompoundNBT serializeNBT()
serializeNBT in interface net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundNBT>serializeNBT in class net.minecraftforge.items.ItemStackHandlerpublic void deserializeNBT(net.minecraft.nbt.CompoundNBT nbt)
deserializeNBT in interface net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundNBT>deserializeNBT in class net.minecraftforge.items.ItemStackHandlerpublic java.util.List<IFactory<? extends IScreenAddon>> getScreenAddons()
getScreenAddons in interface IScreenAddonProvidergetScreenAddons in class InventoryComponent<T extends IComponentHarness>