Package net.minecraft.tileentity
Class ConduitTileEntity
- java.lang.Object
-
- net.minecraftforge.common.capabilities.CapabilityProvider<TileEntity>
-
- net.minecraft.tileentity.TileEntity
-
- net.minecraft.tileentity.ConduitTileEntity
-
- All Implemented Interfaces:
ITickableTileEntity
,ICapabilityProvider
,ICapabilitySerializable<CompoundNBT>
,IForgeTileEntity
,INBTSerializable<CompoundNBT>
public class ConduitTileEntity extends TileEntity implements ITickableTileEntity
-
-
Field Summary
Fields Modifier and Type Field Description private float
activeRotation
private LivingEntity
destroyTarget
private java.util.UUID
destroyTargetUUID
private java.util.List<BlockPos>
effectBlocks
private boolean
isActive
private boolean
isHunting
private long
nextAmbientSoundActivation
int
tickCount
private static Block[]
VALID_BLOCKS
-
Fields inherited from class net.minecraft.tileentity.TileEntity
level, remove, worldPosition
-
Fields inherited from interface net.minecraftforge.common.extensions.IForgeTileEntity
INFINITE_EXTENT_AABB
-
-
Constructor Summary
Constructors Constructor Description ConduitTileEntity()
ConduitTileEntity(TileEntityType<?> p_i48929_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
animationTick()
private void
applyEffects()
private LivingEntity
findDestroyTarget()
float
getActiveRotation(float p_205036_1_)
private AxisAlignedBB
getDestroyRangeAABB()
SUpdateTileEntityPacket
getUpdatePacket()
CompoundNBT
getUpdateTag()
boolean
isActive()
boolean
isHunting()
void
load(BlockState p_230337_1_, CompoundNBT p_230337_2_)
void
playSound(SoundEvent p_205738_1_)
CompoundNBT
save(CompoundNBT p_189515_1_)
private void
setActive(boolean p_205739_1_)
private void
setHunting(boolean p_207736_1_)
void
tick()
private void
updateClientTarget()
private void
updateDestroyTarget()
private boolean
updateShape()
-
Methods inherited from class net.minecraft.tileentity.TileEntity
clearCache, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, getViewDistance, hasLevel, isRemoved, loadStatic, logInvalidState, mirror, onChunkUnloaded, onlyOpCanSetNbt, rotate, setChanged, setLevelAndPosition, setPosition, setRemoved, triggerEvent
-
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapability
-
Methods inherited from interface net.minecraftforge.common.extensions.IForgeTileEntity
deserializeNBT, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
-
-
-
-
Field Detail
-
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 java.util.List<BlockPos> effectBlocks
-
destroyTarget
@Nullable private LivingEntity destroyTarget
-
destroyTargetUUID
@Nullable private java.util.UUID destroyTargetUUID
-
nextAmbientSoundActivation
private long nextAmbientSoundActivation
-
-
Constructor Detail
-
ConduitTileEntity
public ConduitTileEntity()
-
ConduitTileEntity
public ConduitTileEntity(TileEntityType<?> p_i48929_1_)
-
-
Method Detail
-
load
public void load(BlockState p_230337_1_, CompoundNBT p_230337_2_)
- Overrides:
load
in classTileEntity
-
save
public CompoundNBT save(CompoundNBT p_189515_1_)
- Overrides:
save
in classTileEntity
-
getUpdatePacket
@Nullable public SUpdateTileEntityPacket getUpdatePacket()
- Overrides:
getUpdatePacket
in classTileEntity
-
getUpdateTag
public CompoundNBT getUpdateTag()
- Overrides:
getUpdateTag
in classTileEntity
-
tick
public void tick()
- Specified by:
tick
in interfaceITickableTileEntity
-
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_)
-
-