类 ConduitBlockEntity
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.ConduitBlockEntity
- 所有已实现的接口:
IAttachmentHolder
,IBlockEntityExtension
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.level.block.entity.BlockEntity
BlockEntity.BlockEntityPathElement
从类继承的嵌套类/接口 net.neoforged.neoforge.attachment.AttachmentHolder
AttachmentHolder.AsField
-
字段概要
字段修饰符和类型字段说明private float
private static final int
private EntityReference
<LivingEntity> private static final int
private boolean
private boolean
private static final int
private static final int
private static final int
private long
private static final float
int
private static final Block[]
从类继承的字段 net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition
从类继承的字段 net.neoforged.neoforge.attachment.AttachmentHolder
ATTACHMENTS_NBT_KEY
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static void
animationTick
(Level p_155419_, BlockPos p_155420_, List<BlockPos> p_155421_, Entity p_155422_, int p_155423_) private static void
applyEffects
(Level p_155444_, BlockPos p_155445_, List<BlockPos> p_155446_) static void
clientTick
(Level p_155404_, BlockPos p_155405_, BlockState p_155406_, ConduitBlockEntity p_155407_) float
getActiveRotation
(float p_59198_) private static AABB
getDestroyRangeAABB
(BlockPos p_155432_) getUpdateTag
(HolderLookup.Provider p_324390_) boolean
isActive()
boolean
protected void
loadAdditional
(ValueInput p_422459_) protected void
saveAdditional
(ValueOutput p_422645_) private static EntityReference
<LivingEntity> selectNewTarget
(ServerLevel p_423488_, BlockPos p_423513_) static void
serverTick
(Level p_155439_, BlockPos p_155440_, BlockState p_155441_, ConduitBlockEntity p_155442_) private void
setHunting
(boolean p_59215_) private static void
updateAndAttackTarget
(ServerLevel p_423464_, BlockPos p_423617_, BlockState p_423636_, ConduitBlockEntity p_423533_, boolean p_423687_) private static EntityReference
<LivingEntity> updateDestroyTarget
(EntityReference<LivingEntity> p_423553_, ServerLevel p_423665_, BlockPos p_155410_, boolean p_423478_) private static void
updateHunting
(ConduitBlockEntity p_155429_, List<BlockPos> p_155430_) private static boolean
updateShape
(Level p_155415_, BlockPos p_155416_, List<BlockPos> p_155417_) 从类继承的方法 net.minecraft.world.level.block.entity.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, applyImplicitComponents, clearRemoved, collectComponents, collectImplicitComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getNameForReporting, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, parseCustomNameSafe, preRemoveSideEffects, problemPath, removeComponentsFromTag, removeData, saveCustomOnly, saveCustomOnly, saveWithFullMetadata, saveWithFullMetadata, saveWithId, saveWithoutMetadata, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setData, setLevel, setRemoved, triggerEvent
从类继承的方法 net.neoforged.neoforge.attachment.AttachmentHolder
deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, serializeAttachments
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData
从接口继承的方法 net.neoforged.neoforge.common.extensions.IBlockEntityExtension
getModelData, handleUpdateTag, invalidateCapabilities, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate
-
字段详细资料
-
BLOCK_REFRESH_RATE
private static final int BLOCK_REFRESH_RATE- 另请参阅:
-
EFFECT_DURATION
private static final int EFFECT_DURATION- 另请参阅:
-
ROTATION_SPEED
private static final float ROTATION_SPEED- 另请参阅:
-
MIN_ACTIVE_SIZE
private static final int MIN_ACTIVE_SIZE- 另请参阅:
-
MIN_KILL_SIZE
private static final int MIN_KILL_SIZE- 另请参阅:
-
KILL_RANGE
private static final int KILL_RANGE- 另请参阅:
-
VALID_BLOCKS
-
tickCount
public int tickCount -
activeRotation
private float activeRotation -
isActive
private boolean isActive -
isHunting
private boolean isHunting -
effectBlocks
-
destroyTarget
-
nextAmbientSoundActivation
private long nextAmbientSoundActivation
-
-
构造器详细资料
-
ConduitBlockEntity
-
-
方法详细资料
-
loadAdditional
- 覆盖:
loadAdditional
在类中BlockEntity
-
saveAdditional
- 覆盖:
saveAdditional
在类中BlockEntity
-
getUpdatePacket
- 覆盖:
getUpdatePacket
在类中BlockEntity
-
getUpdateTag
- 覆盖:
getUpdateTag
在类中BlockEntity
-
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
-
updateAndAttackTarget
private static void updateAndAttackTarget(ServerLevel p_423464_, BlockPos p_423617_, BlockState p_423636_, ConduitBlockEntity p_423533_, boolean p_423687_) -
updateDestroyTarget
@Nullable private static EntityReference<LivingEntity> updateDestroyTarget(@Nullable EntityReference<LivingEntity> p_423553_, ServerLevel p_423665_, BlockPos p_155410_, boolean p_423478_) -
selectNewTarget
@Nullable private static EntityReference<LivingEntity> selectNewTarget(ServerLevel p_423488_, BlockPos p_423513_) -
getDestroyRangeAABB
-
animationTick
-
isActive
public boolean isActive() -
isHunting
public boolean isHunting() -
setHunting
private void setHunting(boolean p_59215_) -
getActiveRotation
public float getActiveRotation(float p_59198_)
-