Class ConduitBlockEntity
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.ConduitBlockEntity
- All Implemented Interfaces:
IAttachmentHolder,IBlockEntityExtension
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntity
BlockEntity.ComponentHelper, BlockEntity.DataComponentInputNested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
AttachmentHolder.AsField -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate floatprivate static final intprivate LivingEntityprivate UUIDprivate static final intprivate booleanprivate booleanprivate static final intprivate static final intprivate static final intprivate longprivate static final floatintprivate static final Block[]Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
ATTACHMENTS_NBT_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidanimationTick(Level p_155419_, BlockPos p_155420_, List<BlockPos> p_155421_, Entity p_155422_, int p_155423_) private static voidapplyEffects(Level p_155444_, BlockPos p_155445_, List<BlockPos> p_155446_) static voidclientTick(Level p_155404_, BlockPos p_155405_, BlockState p_155406_, ConduitBlockEntity p_155407_) private static LivingEntityfindDestroyTarget(Level p_155425_, BlockPos p_155426_, UUID p_155427_) floatgetActiveRotation(float p_59198_) private static AABBgetDestroyRangeAABB(BlockPos p_155432_) getUpdateTag(HolderLookup.Provider p_324390_) booleanisActive()booleanprotected voidloadAdditional(CompoundTag p_338591_, HolderLookup.Provider p_338280_) protected voidsaveAdditional(CompoundTag p_187495_, HolderLookup.Provider p_323702_) static voidserverTick(Level p_155439_, BlockPos p_155440_, BlockState p_155441_, ConduitBlockEntity p_155442_) private voidsetHunting(boolean p_59215_) private static voidupdateClientTarget(Level p_155400_, BlockPos p_155401_, ConduitBlockEntity p_155402_) private static voidupdateDestroyTarget(Level p_155409_, BlockPos p_155410_, BlockState p_155411_, List<BlockPos> p_155412_, ConduitBlockEntity p_155413_) private static voidupdateHunting(ConduitBlockEntity p_155429_, List<BlockPos> p_155430_) private static booleanupdateShape(Level p_155415_, BlockPos p_155416_, List<BlockPos> p_155417_) Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, applyImplicitComponents, clearRemoved, collectComponents, collectImplicitComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, loadCustomOnly, loadStatic, loadWithComponents, onlyOpCanSetNbt, parseCustomNameSafe, removeComponentsFromTag, removeData, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setData, setLevel, setRemoved, triggerEventMethods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
deserializeAttachments, getData, getExistingData, hasAttachments, hasData, serializeAttachmentsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getExistingData, hasData, removeData, setDataMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockEntityExtension
getModelData, handleUpdateTag, hasCustomOutlineRendering, invalidateCapabilities, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate
-
Field Details
-
BLOCK_REFRESH_RATE
private static final int BLOCK_REFRESH_RATE- See Also:
-
EFFECT_DURATION
private static final int EFFECT_DURATION- See Also:
-
ROTATION_SPEED
private static final float ROTATION_SPEED- See Also:
-
MIN_ACTIVE_SIZE
private static final int MIN_ACTIVE_SIZE- See Also:
-
MIN_KILL_SIZE
private static final int MIN_KILL_SIZE- See Also:
-
KILL_RANGE
private static final int KILL_RANGE- See Also:
-
VALID_BLOCKS
-
tickCount
public int tickCount -
activeRotation
private float activeRotation -
isActive
private boolean isActive -
isHunting
private boolean isHunting -
effectBlocks
-
destroyTarget
-
destroyTargetUUID
-
nextAmbientSoundActivation
private long nextAmbientSoundActivation
-
-
Constructor Details
-
ConduitBlockEntity
-
-
Method Details
-
loadAdditional
- Overrides:
loadAdditionalin classBlockEntity
-
saveAdditional
- Overrides:
saveAdditionalin classBlockEntity
-
getUpdatePacket
- Overrides:
getUpdatePacketin classBlockEntity
-
getUpdateTag
- Overrides:
getUpdateTagin classBlockEntity
-
clientTick
public static void clientTick(Level p_155404_, BlockPos p_155405_, BlockState p_155406_, ConduitBlockEntity p_155407_) -
serverTick
public static void serverTick(Level p_155439_, BlockPos p_155440_, BlockState p_155441_, ConduitBlockEntity p_155442_) -
updateHunting
-
updateShape
-
applyEffects
-
updateDestroyTarget
private static void updateDestroyTarget(Level p_155409_, BlockPos p_155410_, BlockState p_155411_, List<BlockPos> p_155412_, ConduitBlockEntity p_155413_) -
updateClientTarget
private static void updateClientTarget(Level p_155400_, BlockPos p_155401_, ConduitBlockEntity p_155402_) -
getDestroyRangeAABB
-
findDestroyTarget
@Nullable private static LivingEntity findDestroyTarget(Level p_155425_, BlockPos p_155426_, UUID p_155427_) -
animationTick
-
isActive
public boolean isActive() -
isHunting
public boolean isHunting() -
setHunting
private void setHunting(boolean p_59215_) -
getActiveRotation
public float getActiveRotation(float p_59198_)
-