Package net.minecraft.block.entity
Class ConduitBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.ConduitBlockEntity
- All Implemented Interfaces:
Tickable
public class ConduitBlockEntity extends BlockEntity implements Tickable
-
Field Summary
Fields Modifier and Type Field Description private static Block[]ACTIVATING_BLOCKSprivate List<BlockPos>activatingBlocksprivate booleanactiveprivate booleaneyeOpenprivate longnextAmbientSoundTimeprivate LivingEntitytargetEntityprivate UUIDtargetUuidintticksprivate floatticksActiveFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
Constructors Constructor Description ConduitBlockEntity()ConduitBlockEntity(BlockEntityType<?> type) -
Method Summary
Modifier and Type Method Description private voidattackHostileEntity()private LivingEntityfindTargetEntity()voidfromTag(BlockState state, CompoundTag tag)private BoxgetAttackZone()floatgetRotation(float tickDelta)private voidgivePlayersEffects()booleanisActive()booleanisEyeOpen()voidplaySound(SoundEvent soundEvent)private voidsetActive(boolean active)private voidsetEyeOpen(boolean eyeOpen)private voidspawnNautilusParticles()voidtick()CompoundTagtoInitialChunkDataTag()CompoundTagtoTag(CompoundTag tag)BlockEntityUpdateS2CPackettoUpdatePacket()private booleanupdateActivatingBlocks()private voidupdateTargetEntity()Methods inherited from class net.minecraft.block.entity.BlockEntity
applyMirror, applyRotation, cancelRemoval, copyItemDataRequiresOperator, createFromTag, getCachedState, getPos, getSquaredRenderDistance, getType, getWorld, hasWorld, isRemoved, markDirty, markInvalid, markRemoved, onSyncedBlockEvent, populateCrashReport, resetBlock, setLocation, setPos
-
Field Details
-
ACTIVATING_BLOCKS
-
ticks
public int ticks -
ticksActive
private float ticksActive -
active
private boolean active -
eyeOpen
private boolean eyeOpen -
activatingBlocks
-
targetEntity
-
targetUuid
-
nextAmbientSoundTime
private long nextAmbientSoundTime
-
-
Constructor Details
-
ConduitBlockEntity
public ConduitBlockEntity() -
ConduitBlockEntity
-
-
Method Details
-
fromTag
- Overrides:
fromTagin classBlockEntity
-
toTag
- Overrides:
toTagin classBlockEntity
-
toUpdatePacket
- Overrides:
toUpdatePacketin classBlockEntity
-
toInitialChunkDataTag
- Overrides:
toInitialChunkDataTagin classBlockEntity
-
tick
public void tick() -
updateActivatingBlocks
private boolean updateActivatingBlocks() -
givePlayersEffects
private void givePlayersEffects() -
attackHostileEntity
private void attackHostileEntity() -
updateTargetEntity
private void updateTargetEntity() -
getAttackZone
-
findTargetEntity
-
spawnNautilusParticles
private void spawnNautilusParticles() -
isActive
public boolean isActive() -
isEyeOpen
@Environment(CLIENT) public boolean isEyeOpen() -
setActive
private void setActive(boolean active) -
setEyeOpen
private void setEyeOpen(boolean eyeOpen) -
getRotation
@Environment(CLIENT) public float getRotation(float tickDelta) -
playSound
-