Class BlockEntityBotanyPot

java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BaseContainerBlockEntity
net.darkhax.bookshelf.api.block.entity.InventoryBlockEntity<T>
net.darkhax.bookshelf.api.block.entity.WorldlyInventoryBlockEntity<BotanyPotContainer>
net.darkhax.botanypots.block.BlockEntityBotanyPot
All Implemented Interfaces:
net.minecraft.world.Clearable, net.minecraft.world.Container, net.minecraft.world.inventory.MenuConstructor, net.minecraft.world.MenuProvider, net.minecraft.world.Nameable, net.minecraft.world.WorldlyContainer, net.minecraftforge.common.capabilities.ICapabilityProvider, net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.level.block.entity.BlockEntity>, net.minecraftforge.common.capabilities.ICapabilitySerializable<net.minecraft.nbt.CompoundTag>, net.minecraftforge.common.extensions.IForgeBlockEntity, net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>

public class BlockEntityBotanyPot extends net.darkhax.bookshelf.api.block.entity.WorldlyInventoryBlockEntity<BotanyPotContainer>
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider

    net.minecraftforge.common.capabilities.CapabilityProvider.AsField<B extends net.minecraftforge.common.capabilities.ICapabilityProviderImpl<B>>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected int
     
    protected boolean
     
    protected int
     
    protected int
     
    protected int
     
    static final net.darkhax.bookshelf.api.function.CachedSupplier<net.minecraft.world.level.block.entity.BlockEntityType<BlockEntityBotanyPot>>
     
    protected int
     

    Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity

    level, remove, worldPosition

    Fields inherited from interface net.minecraft.world.Container

    DEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZE

    Fields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity

    INFINITE_EXTENT_AABB
  • Constructor Summary

    Constructors
    Constructor
    Description
    BlockEntityBotanyPot(net.minecraft.world.level.block.entity.BlockEntityType potType, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addGrowth(int nextIntInclusive)
     
    boolean
     
    boolean
     
     
    net.minecraft.world.inventory.AbstractContainerMenu
    createMenu(int windowId, net.minecraft.world.entity.player.Inventory inventory)
     
    int
     
     
    protected net.minecraft.network.chat.Component
     
    int
     
    int
     
     
    net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener>
     
    net.minecraft.nbt.CompoundTag
     
    boolean
     
    boolean
     
    boolean
     
    boolean
    isValidSeed(net.minecraft.world.item.ItemStack stack)
     
    boolean
    isValidSoil(net.minecraft.world.item.ItemStack stack)
     
    void
    load(net.minecraft.nbt.CompoundTag tag)
     
    void
     
    void
     
    void
     
    void
    saveAdditional(net.minecraft.nbt.CompoundTag tag)
     
    static void
    tickPot(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, BlockEntityBotanyPot pot)
     

    Methods inherited from class net.darkhax.bookshelf.api.block.entity.WorldlyInventoryBlockEntity

    canPlaceItemThroughFace, canTakeItemThroughFace, getSlotsForFace

    Methods inherited from class net.darkhax.bookshelf.api.block.entity.InventoryBlockEntity

    canPlaceItem, clearContent, countItem, dropContents, getContainerSize, getInventory, getItem, getMaxStackSize, hasAnyOf, isEmpty, readInventory, removeItem, removeItemNoUpdate, saveInventory, setChanged, setItem, startOpen, stillValid, stopOpen

    Methods inherited from class net.minecraft.world.level.block.entity.BaseContainerBlockEntity

    canOpen, canUnlock, createMenu, createUnSidedHandler, getCapability, getCustomName, getDisplayName, getName, invalidateCaps, reviveCaps, setCustomName

    Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity

    addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setLevel, setRemoved, triggerEvent

    Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider

    areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, serializeCaps

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface net.minecraft.world.Clearable

    clearContent

    Methods inherited from interface net.minecraft.world.Container

    canPlaceItem, canTakeItem, countItem, getContainerSize, getItem, getMaxStackSize, hasAnyMatching, hasAnyOf, isEmpty, removeItem, removeItemNoUpdate, setChanged, setItem, startOpen, stillValid, stopOpen

    Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider

    getCapability

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity

    deserializeNBT, getModelData, getRenderBoundingBox, handleUpdateTag, hasCustomOutlineRendering, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT

    Methods inherited from interface net.minecraft.world.Nameable

    hasCustomName
  • Field Details

    • POT_TYPE

      public static final net.darkhax.bookshelf.api.function.CachedSupplier<net.minecraft.world.level.block.entity.BlockEntityType<BlockEntityBotanyPot>> POT_TYPE
    • growthTime

      protected int growthTime
    • doneGrowing

      protected boolean doneGrowing
    • prevComparatorLevel

      protected int prevComparatorLevel
    • comparatorLevel

      protected int comparatorLevel
    • harvestDelay

      protected int harvestDelay
    • exportDelay

      protected int exportDelay
  • Constructor Details

    • BlockEntityBotanyPot

      public BlockEntityBotanyPot(net.minecraft.world.level.block.entity.BlockEntityType potType, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
  • Method Details

    • isHopper

      public boolean isHopper()
    • refreshRandom

      public void refreshRandom()
    • getCrop

      @Nullable public Crop getCrop()
    • getSoil

      @Nullable public Soil getSoil()
    • isGrowing

      public boolean isGrowing()
    • areGrowthConditionsMet

      public boolean areGrowthConditionsMet()
    • isCropHarvestable

      public boolean isCropHarvestable()
    • getLightLevel

      public int getLightLevel()
    • getGrowthTime

      public int getGrowthTime()
    • getComparatorLevel

      public int getComparatorLevel()
    • isValidSoil

      public boolean isValidSoil(net.minecraft.world.item.ItemStack stack)
    • isValidSeed

      public boolean isValidSeed(net.minecraft.world.item.ItemStack stack)
    • attemptAutoHarvest

      public boolean attemptAutoHarvest()
    • tickPot

      public static void tickPot(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, BlockEntityBotanyPot pot)
    • resetGrowth

      public void resetGrowth()
    • markDirty

      public void markDirty()
      Overrides:
      markDirty in class net.darkhax.bookshelf.api.block.entity.InventoryBlockEntity<BotanyPotContainer>
    • load

      public void load(net.minecraft.nbt.CompoundTag tag)
      Overrides:
      load in class net.darkhax.bookshelf.api.block.entity.InventoryBlockEntity<BotanyPotContainer>
    • saveAdditional

      public void saveAdditional(net.minecraft.nbt.CompoundTag tag)
      Overrides:
      saveAdditional in class net.darkhax.bookshelf.api.block.entity.InventoryBlockEntity<BotanyPotContainer>
    • getUpdateTag

      public net.minecraft.nbt.CompoundTag getUpdateTag()
      Overrides:
      getUpdateTag in class net.minecraft.world.level.block.entity.BlockEntity
    • getUpdatePacket

      public net.minecraft.network.protocol.Packet<net.minecraft.network.protocol.game.ClientGamePacketListener> getUpdatePacket()
      Overrides:
      getUpdatePacket in class net.minecraft.world.level.block.entity.BlockEntity
    • createInventory

      public BotanyPotContainer createInventory()
      Specified by:
      createInventory in class net.darkhax.bookshelf.api.block.entity.InventoryBlockEntity<BotanyPotContainer>
    • getDefaultName

      protected net.minecraft.network.chat.Component getDefaultName()
      Specified by:
      getDefaultName in class net.minecraft.world.level.block.entity.BaseContainerBlockEntity
    • createMenu

      public net.minecraft.world.inventory.AbstractContainerMenu createMenu(int windowId, net.minecraft.world.entity.player.Inventory inventory)
      Overrides:
      createMenu in class net.darkhax.bookshelf.api.block.entity.InventoryBlockEntity<BotanyPotContainer>
    • addGrowth

      public void addGrowth(int nextIntInclusive)