Class TermiteMoundBlockEntity

java.lang.Object
net.minecraft.world.level.block.entity.BlockEntity
net.frozenblock.wilderwild.block.entity.TermiteMoundBlockEntity

public class TermiteMoundBlockEntity extends net.minecraft.world.level.block.entity.BlockEntity
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final it.unimi.dsi.fastutil.ints.IntArrayList
     
    final it.unimi.dsi.fastutil.ints.IntArrayList
     
     

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

    level, remove, worldPosition
  • Constructor Summary

    Constructors
    Constructor
    Description
    TermiteMoundBlockEntity(@NotNull net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState state)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addTermiteSound(TermiteMoundBlockEntity mound, int termiteID, boolean eating)
     
    net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket
     
    @NotNull net.minecraft.nbt.CompoundTag
     
    void
    load(@NotNull net.minecraft.nbt.CompoundTag tag)
     
    protected void
    saveAdditional(@NotNull net.minecraft.nbt.CompoundTag tag)
     
    void
     
    void
    tickServer(@NotNull net.minecraft.world.level.Level level, @NotNull net.minecraft.core.BlockPos pos, boolean natural, boolean awake, boolean canSpawn)
     
    void
     

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

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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • termiteManager

      public final TermiteManager termiteManager
    • clientTermiteIDs

      public final it.unimi.dsi.fastutil.ints.IntArrayList clientTermiteIDs
    • prevClientTermiteIDs

      public final it.unimi.dsi.fastutil.ints.IntArrayList prevClientTermiteIDs
  • Constructor Details

    • TermiteMoundBlockEntity

      public TermiteMoundBlockEntity(@NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState state)
  • Method Details

    • tickServer

      public void tickServer(@NotNull @NotNull net.minecraft.world.level.Level level, @NotNull @NotNull net.minecraft.core.BlockPos pos, boolean natural, boolean awake, boolean canSpawn)
    • updateSync

      public void updateSync()
    • tickClient

      public void tickClient()
    • getUpdatePacket

      public net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket getUpdatePacket()
      Overrides:
      getUpdatePacket in class net.minecraft.world.level.block.entity.BlockEntity
    • getUpdateTag

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

      protected void saveAdditional(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag)
      Overrides:
      saveAdditional in class net.minecraft.world.level.block.entity.BlockEntity
    • load

      public void load(@NotNull @NotNull net.minecraft.nbt.CompoundTag tag)
      Overrides:
      load in class net.minecraft.world.level.block.entity.BlockEntity
    • addTermiteSound

      @Environment(CLIENT) public static void addTermiteSound(TermiteMoundBlockEntity mound, int termiteID, boolean eating)