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 floatactiveRotationprivate LivingEntitydestroyTargetprivate java.util.UUIDdestroyTargetUUIDprivate java.util.List<BlockPos>effectBlocksprivate booleanisActiveprivate booleanisHuntingprivate longnextAmbientSoundActivationinttickCountprivate 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 voidanimationTick()private voidapplyEffects()private LivingEntityfindDestroyTarget()floatgetActiveRotation(float p_205036_1_)private AxisAlignedBBgetDestroyRangeAABB()SUpdateTileEntityPacketgetUpdatePacket()CompoundNBTgetUpdateTag()booleanisActive()booleanisHunting()voidload(BlockState p_230337_1_, CompoundNBT p_230337_2_)voidplaySound(SoundEvent p_205738_1_)CompoundNBTsave(CompoundNBT p_189515_1_)private voidsetActive(boolean p_205739_1_)private voidsetHunting(boolean p_207736_1_)voidtick()private voidupdateClientTarget()private voidupdateDestroyTarget()private booleanupdateShape()-
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:
loadin classTileEntity
-
save
public CompoundNBT save(CompoundNBT p_189515_1_)
- Overrides:
savein classTileEntity
-
getUpdatePacket
@Nullable public SUpdateTileEntityPacket getUpdatePacket()
- Overrides:
getUpdatePacketin classTileEntity
-
getUpdateTag
public CompoundNBT getUpdateTag()
- Overrides:
getUpdateTagin classTileEntity
-
tick
public void tick()
- Specified by:
tickin 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_)
-
-