net.minecraft.block.entity

public class ConduitBlockEntity

extends BlockEntity

All mapped superinterfaces:

DebugTrackable

net.minecraft.world.level.block.entity.ConduitBlockEntity
net.minecraft.class_2597
net.minecraft.block.entity.ConduitBlockEntity

Field summary

Modifier and TypeField
private static final int
BLOCK_REFRESH_RATE
field_31333
field_31333
private static final int
EFFECT_DURATION
field_31334
field_31334
private static final float
ROTATION_SPEED
field_31335
field_31335
private static final int
MIN_ACTIVE_SIZE
field_31336
field_31336
private static final int
MIN_KILL_SIZE
field_31337
MIN_BLOCKS_TO_ACTIVATE
private static final int
KILL_RANGE
field_31338
field_31338
private static final Block[]
VALID_BLOCKS
field_11931
ACTIVATING_BLOCKS
public int
tickCount
field_11936
ticks
private float
activeRotation
field_11932
ticksActive
private boolean
isActive
field_11934
active
private boolean
isHunting
field_11933
eyeOpen
private final List<BlockPos>
effectBlocks
field_11937
activatingBlocks
private LazyEntityReference<LivingEntity>
destroyTarget
field_11939
targetEntity
private long
nextAmbientSoundActivation
field_11938
nextAmbientSoundTime

Constructor summary

ModifierConstructor
public (BlockPos pos, BlockState state)

Method summary

Modifier and TypeMethod
protected void
loadAdditional(ValueInput input)
method_11014(class_11368 arg0)
readData(ReadView arg0)
protected void
saveAdditional(ValueOutput output)
method_11007(class_11372 arg0)
writeData(WriteView arg0)
public BlockEntityUpdateS2CPacket
getUpdatePacket()
method_38235()
toUpdatePacket()
public NbtCompound
getUpdateTag(HolderLookup$Provider registries)
method_16887(class_7225$class_7874 arg0)
toInitialChunkDataNbt(RegistryWrapper$WrapperLookup arg0)
public static void
clientTick(Level level, BlockPos pos, BlockState state, ConduitBlockEntity entity)
method_31675(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_2597 arg3)
clientTick(World world, BlockPos pos, BlockState state, ConduitBlockEntity blockEntity)
public static void
serverTick(Level level, BlockPos pos, BlockState state, ConduitBlockEntity entity)
method_31677(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_2597 arg3)
serverTick(World world, BlockPos pos, BlockState state, ConduitBlockEntity blockEntity)
private static void
updateHunting(ConduitBlockEntity entity, List<BlockPos> effectBlocks)
method_31676(class_2597 arg0, List<class_2338> arg1)
openEye(ConduitBlockEntity blockEntity, List<BlockPos> activatingBlocks)
private static boolean
updateShape(Level level, BlockPos worldPosition, List<BlockPos> effectBlocks)
method_11069(class_1937 arg0, class_2338 arg1, List<class_2338> arg2)
updateActivatingBlocks(World world, BlockPos pos, List<BlockPos> activatingBlocks)
private static void
applyEffects(Level level, BlockPos worldPosition, List<BlockPos> effectBlocks)
method_11055(class_1937 arg0, class_2338 arg1, List<class_2338> arg2)
givePlayersEffects(World world, BlockPos pos, List<BlockPos> activatingBlocks)
private static void
updateAndAttackTarget(ServerLevel level, BlockPos worldPosition, BlockState blockState, ConduitBlockEntity entity, boolean isActive)
method_71632(class_3218 arg0, class_2338 arg1, class_2680 arg2, class_2597 arg3, boolean arg4)
tryAttack(ServerWorld world, BlockPos pos, BlockState state, ConduitBlockEntity blockEntity, boolean canAttack)
private static LazyEntityReference<LivingEntity>
updateDestroyTarget(EntityReference<LivingEntity> target, ServerLevel level, BlockPos pos, boolean isActive)
method_71633(class_10583<class_1309> arg0, class_3218 arg1, class_2338 arg2, boolean arg3)
getValidTarget(LazyEntityReference<LivingEntity> currentTarget, ServerWorld world, BlockPos pos, boolean canAttack)
private static LazyEntityReference<LivingEntity>
selectNewTarget(ServerLevel level, BlockPos pos)
method_71631(class_3218 arg0, class_2338 arg1)
findAttackTarget(ServerWorld world, BlockPos pos)
private static Box
getDestroyRangeAABB(BlockPos worldPosition)
method_11059(class_2338 arg0)
getAttackZone(BlockPos pos)
private static void
animationTick(Level level, BlockPos worldPosition, List<BlockPos> effectBlocks, Entity destroyTarget, int tickCount)
method_11063(class_1937 arg0, class_2338 arg1, List<class_2338> arg2, class_1297 arg3, int arg4)
spawnNautilusParticles(World world, BlockPos pos, List<BlockPos> activatingBlocks, Entity entity, int ticks)
public boolean
isActive()
method_11065()
isActive()
public boolean
isHunting()
method_11066()
isEyeOpen()
private void
setHunting(boolean hunting)
method_11062(boolean arg0)
setEyeOpen(boolean eyeOpen)
public float
getActiveRotation(float a)
method_11061(float arg0)
getRotation(float tickProgress)
public Packet
getUpdatePacket()
method_38235()
toUpdatePacket()
private static boolean
lambda$selectNewTarget$0(LivingEntity arg0)
method_71634(class_1309 arg0)
method_71634(LivingEntity entity)