Package net.darkhax.botanypots.block.inv
Class BotanyPotContainer
java.lang.Object
net.minecraft.world.SimpleContainer
net.darkhax.botanypots.block.inv.BotanyPotContainer
- All Implemented Interfaces:
net.minecraft.world.Clearable,net.minecraft.world.Container,net.minecraft.world.inventory.StackedContentsCompatible,net.minecraft.world.WorldlyContainer
public class BotanyPotContainer
extends net.minecraft.world.SimpleContainer
implements net.minecraft.world.WorldlyContainer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int[]static final intstatic final int[]Fields inherited from interface net.minecraft.world.Container
DEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanPlaceItem(int slotId, net.minecraft.world.item.ItemStack toPlace) booleancanPlaceItemThroughFace(int slotId, net.minecraft.world.item.ItemStack toInsert, net.minecraft.core.Direction side) booleancanTakeItemThroughFace(int slotId, net.minecraft.world.item.ItemStack toExtract, net.minecraft.core.Direction side) getCrop()net.minecraft.world.item.ItemStackintint[]getSlotsForFace(net.minecraft.core.Direction side) getSoil()net.minecraft.world.item.ItemStackvoidbooleanstillValid(net.minecraft.world.entity.player.Player player) voidupdate()Methods inherited from class net.minecraft.world.SimpleContainer
addItem, addListener, canAddItem, clearContent, createTag, fillStackedContents, fromTag, getContainerSize, getItem, isEmpty, removeAllItems, removeItem, removeItemNoUpdate, removeItemType, removeListener, setItem, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.Clearable
clearContentMethods inherited from interface net.minecraft.world.Container
canTakeItem, countItem, getContainerSize, getItem, getMaxStackSize, hasAnyMatching, hasAnyOf, isEmpty, removeItem, removeItemNoUpdate, setItem, startOpen, stopOpen
-
Field Details
-
SOIL_SLOT
public static final int SOIL_SLOT- See Also:
-
CROP_SLOT
public static final int CROP_SLOT- See Also:
-
STORAGE_SLOT
public static final int[] STORAGE_SLOT -
EMPTY_SLOTS
public static final int[] EMPTY_SLOTS
-
-
Constructor Details
-
BotanyPotContainer
-
-
Method Details
-
getSoilStack
public net.minecraft.world.item.ItemStack getSoilStack() -
getCropStack
public net.minecraft.world.item.ItemStack getCropStack() -
getRequiredGrowthTime
public int getRequiredGrowthTime() -
getPotEntity
-
update
public void update() -
setChanged
public void setChanged()- Specified by:
setChangedin interfacenet.minecraft.world.Container- Overrides:
setChangedin classnet.minecraft.world.SimpleContainer
-
getCrop
-
getSoil
-
canPlaceItem
public boolean canPlaceItem(int slotId, net.minecraft.world.item.ItemStack toPlace) - Specified by:
canPlaceItemin interfacenet.minecraft.world.Container
-
getSlotsForFace
public int[] getSlotsForFace(net.minecraft.core.Direction side) - Specified by:
getSlotsForFacein interfacenet.minecraft.world.WorldlyContainer
-
canPlaceItemThroughFace
public boolean canPlaceItemThroughFace(int slotId, net.minecraft.world.item.ItemStack toInsert, net.minecraft.core.Direction side) - Specified by:
canPlaceItemThroughFacein interfacenet.minecraft.world.WorldlyContainer
-
canTakeItemThroughFace
public boolean canTakeItemThroughFace(int slotId, net.minecraft.world.item.ItemStack toExtract, net.minecraft.core.Direction side) - Specified by:
canTakeItemThroughFacein interfacenet.minecraft.world.WorldlyContainer
-
stillValid
public boolean stillValid(net.minecraft.world.entity.player.Player player) - Specified by:
stillValidin interfacenet.minecraft.world.Container- Overrides:
stillValidin classnet.minecraft.world.SimpleContainer
-