Class BeehiveTileEntity

All Implemented Interfaces:
ITickableTileEntity, ICapabilityProvider, ICapabilitySerializable<CompoundNBT>, IForgeTileEntity, INBTSerializable<CompoundNBT>

public class BeehiveTileEntity extends TileEntity implements ITickableTileEntity
  • Field Details

  • Constructor Details

    • BeehiveTileEntity

      public BeehiveTileEntity()
  • Method Details

    • setChanged

      public void setChanged()
      Overrides:
      setChanged in class TileEntity
    • isFireNearby

      public boolean isFireNearby()
    • isEmpty

      public boolean isEmpty()
    • isFull

      public boolean isFull()
    • emptyAllLivingFromHive

      public void emptyAllLivingFromHive(@Nullable PlayerEntity p_226963_1_, BlockState p_226963_2_, BeehiveTileEntity.State p_226963_3_)
    • releaseAllOccupants

      private List<Entity> releaseAllOccupants(BlockState p_226965_1_, BeehiveTileEntity.State p_226965_2_)
    • addOccupant

      public void addOccupant(Entity p_226961_1_, boolean p_226961_2_)
    • getOccupantCount

      public int getOccupantCount()
    • getHoneyLevel

      public static int getHoneyLevel(BlockState p_226964_0_)
    • isSedated

      public boolean isSedated()
    • sendDebugPackets

      protected void sendDebugPackets()
    • addOccupantWithPresetTicks

      public void addOccupantWithPresetTicks(Entity p_226962_1_, boolean p_226962_2_, int p_226962_3_)
    • releaseOccupant

      private boolean releaseOccupant(BlockState p_235651_1_, BeehiveTileEntity.Bee p_235651_2_, @Nullable List<Entity> p_235651_3_, BeehiveTileEntity.State p_235651_4_)
    • setBeeReleaseData

      private void setBeeReleaseData(int p_235650_1_, BeeEntity p_235650_2_)
    • hasSavedFlowerPos

      private boolean hasSavedFlowerPos()
    • tickOccupants

      private void tickOccupants()
    • tick

      public void tick()
      Specified by:
      tick in interface ITickableTileEntity
    • load

      public void load(BlockState p_230337_1_, CompoundNBT p_230337_2_)
      Overrides:
      load in class TileEntity
    • save

      public CompoundNBT save(CompoundNBT p_189515_1_)
      Overrides:
      save in class TileEntity
    • writeBees

      public ListNBT writeBees()