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

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int[]
     
    static final int
     
    static final int[]
     

    Fields inherited from interface net.minecraft.world.Container

    DEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canPlaceItem(int slotId, net.minecraft.world.item.ItemStack toPlace)
     
    boolean
    canPlaceItemThroughFace(int slotId, net.minecraft.world.item.ItemStack toInsert, net.minecraft.core.Direction side)
     
    boolean
    canTakeItemThroughFace(int slotId, net.minecraft.world.item.ItemStack toExtract, net.minecraft.core.Direction side)
     
     
    net.minecraft.world.item.ItemStack
     
     
    int
     
    int[]
    getSlotsForFace(net.minecraft.core.Direction side)
     
     
    net.minecraft.world.item.ItemStack
     
    void
     
    boolean
    stillValid(net.minecraft.world.entity.player.Player player)
     
    void
     

    Methods inherited from class net.minecraft.world.SimpleContainer

    addItem, addListener, canAddItem, clearContent, createTag, fillStackedContents, fromTag, getContainerSize, getItem, isEmpty, removeAllItems, removeItem, removeItemNoUpdate, removeItemType, removeListener, setItem, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.minecraft.world.Clearable

    clearContent

    Methods 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

  • Method Details

    • getSoilStack

      public net.minecraft.world.item.ItemStack getSoilStack()
    • getCropStack

      public net.minecraft.world.item.ItemStack getCropStack()
    • getRequiredGrowthTime

      public int getRequiredGrowthTime()
    • getPotEntity

      public BlockEntityBotanyPot getPotEntity()
    • update

      public void update()
    • setChanged

      public void setChanged()
      Specified by:
      setChanged in interface net.minecraft.world.Container
      Overrides:
      setChanged in class net.minecraft.world.SimpleContainer
    • getCrop

      @Nullable public Crop getCrop()
    • getSoil

      @Nullable public Soil getSoil()
    • canPlaceItem

      public boolean canPlaceItem(int slotId, net.minecraft.world.item.ItemStack toPlace)
      Specified by:
      canPlaceItem in interface net.minecraft.world.Container
    • getSlotsForFace

      public int[] getSlotsForFace(net.minecraft.core.Direction side)
      Specified by:
      getSlotsForFace in interface net.minecraft.world.WorldlyContainer
    • canPlaceItemThroughFace

      public boolean canPlaceItemThroughFace(int slotId, net.minecraft.world.item.ItemStack toInsert, net.minecraft.core.Direction side)
      Specified by:
      canPlaceItemThroughFace in interface net.minecraft.world.WorldlyContainer
    • canTakeItemThroughFace

      public boolean canTakeItemThroughFace(int slotId, net.minecraft.world.item.ItemStack toExtract, net.minecraft.core.Direction side)
      Specified by:
      canTakeItemThroughFace in interface net.minecraft.world.WorldlyContainer
    • stillValid

      public boolean stillValid(net.minecraft.world.entity.player.Player player)
      Specified by:
      stillValid in interface net.minecraft.world.Container
      Overrides:
      stillValid in class net.minecraft.world.SimpleContainer