Class ConduitTileEntity

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

public class ConduitTileEntity extends TileEntity implements ITickableTileEntity
  • Field Details

    • VALID_BLOCKS

      private static final Block[] VALID_BLOCKS
    • tickCount

      public int tickCount
    • activeRotation

      private float activeRotation
    • isActive

      private boolean isActive
    • isHunting

      private boolean isHunting
    • effectBlocks

      private final List<BlockPos> effectBlocks
    • destroyTarget

      @Nullable private LivingEntity destroyTarget
    • destroyTargetUUID

      @Nullable private UUID destroyTargetUUID
    • nextAmbientSoundActivation

      private long nextAmbientSoundActivation
  • Constructor Details

    • ConduitTileEntity

      public ConduitTileEntity()
    • ConduitTileEntity

      public ConduitTileEntity(TileEntityType<?> p_i48929_1_)
  • Method Details

    • 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
    • getUpdatePacket

      @Nullable public SUpdateTileEntityPacket getUpdatePacket()
      Overrides:
      getUpdatePacket in class TileEntity
    • getUpdateTag

      public CompoundNBT getUpdateTag()
      Overrides:
      getUpdateTag in class TileEntity
    • tick

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

      private boolean updateShape()
    • applyEffects

      private void applyEffects()
    • updateDestroyTarget

      private void updateDestroyTarget()
    • updateClientTarget

      private void updateClientTarget()
    • getDestroyRangeAABB

      private AxisAlignedBB getDestroyRangeAABB()
    • findDestroyTarget

      @Nullable private LivingEntity findDestroyTarget()
    • animationTick

      private void animationTick()
    • isActive

      public boolean isActive()
    • isHunting

      public boolean isHunting()
    • setActive

      private void setActive(boolean p_205739_1_)
    • setHunting

      private void setHunting(boolean p_207736_1_)
    • getActiveRotation

      public float getActiveRotation(float p_205036_1_)
    • playSound

      public void playSound(SoundEvent p_205738_1_)