Class ConduitBlockEntity
- Mappings:
Namespace Name named net/minecraft/block/entity/ConduitBlockEntityintermediary net/minecraft/class_2597official dpv
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.entity.BlockEntity
BlockEntity.ComponentsAccess -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Block[]private booleanprivate booleanprivate static final intprivate static final intprivate static final floatprivate static final intprivate static final intprivate static final intprivate longprivate @Nullable LivingEntityintprivate floatFields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidattackHostileEntity(World world, BlockPos pos, BlockState state, List<BlockPos> activatingBlocks, ConduitBlockEntity blockEntity) static voidclientTick(World world, BlockPos pos, BlockState state, ConduitBlockEntity blockEntity) private static @Nullable LivingEntityfindTargetEntity(World world, BlockPos pos, UUID uuid) private static BoxgetAttackZone(BlockPos pos) floatgetRotation(float tickDelta) private static voidgivePlayersEffects(World world, BlockPos pos, List<BlockPos> activatingBlocks) booleanisActive()booleanprivate static voidopenEye(ConduitBlockEntity blockEntity, List<BlockPos> activatingBlocks) protected voidreadNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Reads data fromnbt.static voidserverTick(World world, BlockPos pos, BlockState state, ConduitBlockEntity blockEntity) private voidsetEyeOpen(boolean eyeOpen) private static voidspawnNautilusParticles(World world, BlockPos pos, List<BlockPos> activatingBlocks, @Nullable Entity entity, int ticks) toInitialChunkDataNbt(RegistryWrapper.WrapperLookup registryLookup) Returns the serialized state of this block entity that is observable by clients.Returns the packet to send to nearby players when the block entity's observable state changes, ornullto not send the packet.private static booleanupdateActivatingBlocks(World world, BlockPos pos, List<BlockPos> activatingBlocks) private static voidupdateTargetEntity(World world, BlockPos pos, ConduitBlockEntity blockEntity) protected voidwriteNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup) Writes data tonbt.Methods inherited from class net.minecraft.block.entity.BlockEntity
addComponents, cancelRemoval, copyItemDataRequiresOperator, createComponentlessNbt, createComponentlessNbtWithIdentifyingData, createComponentMap, createFromNbt, createNbt, createNbtWithId, createNbtWithIdentifyingData, getCachedState, getComponents, getPos, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, posFromNbt, read, readComponentlessNbt, readComponents, readComponents, readComponents, removeFromCopiedStackNbt, setCachedState, setComponents, setStackNbt, setWorld, tryParseCustomName, writeIdToNbt
-
Field Details
-
field_31333
private static final int field_31333- See Also:
- Mappings:
Namespace Name Mixin selector named field_31333Lnet/minecraft/block/entity/ConduitBlockEntity;field_31333:Iintermediary field_31333Lnet/minecraft/class_2597;field_31333:Iofficial bLdpv;b:I
-
field_31334
private static final int field_31334- See Also:
- Mappings:
Namespace Name Mixin selector named field_31334Lnet/minecraft/block/entity/ConduitBlockEntity;field_31334:Iintermediary field_31334Lnet/minecraft/class_2597;field_31334:Iofficial cLdpv;c:I
-
field_31335
private static final float field_31335- See Also:
- Mappings:
Namespace Name Mixin selector named field_31335Lnet/minecraft/block/entity/ConduitBlockEntity;field_31335:Fintermediary field_31335Lnet/minecraft/class_2597;field_31335:Fofficial dLdpv;d:F
-
field_31336
private static final int field_31336- See Also:
- Mappings:
Namespace Name Mixin selector named field_31336Lnet/minecraft/block/entity/ConduitBlockEntity;field_31336:Iintermediary field_31336Lnet/minecraft/class_2597;field_31336:Iofficial eLdpv;e:I
-
MIN_BLOCKS_TO_ACTIVATE
private static final int MIN_BLOCKS_TO_ACTIVATE- See Also:
- Mappings:
Namespace Name Mixin selector named MIN_BLOCKS_TO_ACTIVATELnet/minecraft/block/entity/ConduitBlockEntity;MIN_BLOCKS_TO_ACTIVATE:Iintermediary field_31337Lnet/minecraft/class_2597;field_31337:Iofficial fLdpv;f:I
-
field_31338
private static final int field_31338- See Also:
- Mappings:
Namespace Name Mixin selector named field_31338Lnet/minecraft/block/entity/ConduitBlockEntity;field_31338:Iintermediary field_31338Lnet/minecraft/class_2597;field_31338:Iofficial gLdpv;g:I
-
ACTIVATING_BLOCKS
- Mappings:
Namespace Name Mixin selector named ACTIVATING_BLOCKSLnet/minecraft/block/entity/ConduitBlockEntity;ACTIVATING_BLOCKS:[Lnet/minecraft/block/Block;intermediary field_11931Lnet/minecraft/class_2597;field_11931:[Lnet/minecraft/class_2248;official hLdpv;h:[Ldfb;
-
ticks
public int ticks- Mappings:
Namespace Name Mixin selector named ticksLnet/minecraft/block/entity/ConduitBlockEntity;ticks:Iintermediary field_11936Lnet/minecraft/class_2597;field_11936:Iofficial aLdpv;a:I
-
ticksActive
private float ticksActive- Mappings:
Namespace Name Mixin selector named ticksActiveLnet/minecraft/block/entity/ConduitBlockEntity;ticksActive:Fintermediary field_11932Lnet/minecraft/class_2597;field_11932:Fofficial iLdpv;i:F
-
active
private boolean active- Mappings:
Namespace Name Mixin selector named activeLnet/minecraft/block/entity/ConduitBlockEntity;active:Zintermediary field_11934Lnet/minecraft/class_2597;field_11934:Zofficial jLdpv;j:Z
-
eyeOpen
private boolean eyeOpen- Mappings:
Namespace Name Mixin selector named eyeOpenLnet/minecraft/block/entity/ConduitBlockEntity;eyeOpen:Zintermediary field_11933Lnet/minecraft/class_2597;field_11933:Zofficial kLdpv;k:Z
-
activatingBlocks
- Mappings:
Namespace Name Mixin selector named activatingBlocksLnet/minecraft/block/entity/ConduitBlockEntity;activatingBlocks:Ljava/util/List;intermediary field_11937Lnet/minecraft/class_2597;field_11937:Ljava/util/List;official lLdpv;l:Ljava/util/List;
-
targetEntity
- Mappings:
Namespace Name Mixin selector named targetEntityLnet/minecraft/block/entity/ConduitBlockEntity;targetEntity:Lnet/minecraft/entity/LivingEntity;intermediary field_11939Lnet/minecraft/class_2597;field_11939:Lnet/minecraft/class_1309;official mLdpv;m:Lbtr;
-
targetUuid
- Mappings:
Namespace Name Mixin selector named targetUuidLnet/minecraft/block/entity/ConduitBlockEntity;targetUuid:Ljava/util/UUID;intermediary field_11935Lnet/minecraft/class_2597;field_11935:Ljava/util/UUID;official qLdpv;q:Ljava/util/UUID;
-
nextAmbientSoundTime
private long nextAmbientSoundTime- Mappings:
Namespace Name Mixin selector named nextAmbientSoundTimeLnet/minecraft/block/entity/ConduitBlockEntity;nextAmbientSoundTime:Jintermediary field_11938Lnet/minecraft/class_2597;field_11938:Jofficial rLdpv;r:J
-
-
Constructor Details
-
ConduitBlockEntity
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/block/entity/ConduitBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Vintermediary <init>Lnet/minecraft/class_2597;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vofficial <init>Ldpv;<init>(Liz;Ldse;)V
-
-
Method Details
-
readNbt
Reads data fromnbt. Subclasses should override this if they store a persistent data.NBT is a storage format; therefore, a data from NBT is loaded to a block entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the block entity.
nbtmight not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.- Overrides:
readNbtin classBlockEntity- See Also:
- Mappings:
Namespace Name Mixin selector named readNbtLnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Vintermediary method_11014Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)Vofficial aLdpj;a(Lus;Ljk$a;)V
-
writeNbt
Writes data tonbt. Subclasses should override this if they store a persistent data.NBT is a storage format; therefore, a data from NBT is loaded to a block entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the block entity.
- Overrides:
writeNbtin classBlockEntity- See Also:
- Mappings:
Namespace Name Mixin selector named writeNbtLnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Vintermediary method_11007Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)Vofficial bLdpj;b(Lus;Ljk$a;)V
-
toUpdatePacket
Description copied from class:BlockEntityReturns the packet to send to nearby players when the block entity's observable state changes, ornullto not send the packet.If the data returned by
initial chunk datais suitable for updates, the following shortcut can be used to create an update packet:BlockEntityUpdateS2CPacket.create(this). The NBT will be passed toBlockEntity.readNbt(net.minecraft.nbt.NbtCompound, net.minecraft.registry.RegistryWrapper.WrapperLookup)on the client."Observable state" is a state that clients can observe without specific interaction. For example,
CampfireBlockEntity's cooked items are observable states, but chests' inventories are not observable states, since the player must first open that chest before they can see the contents.To sync block entity data using this method, use
serverWorld.getChunkManager().markForUpdate(this.getPos());.- Overrides:
toUpdatePacketin classBlockEntity- Returns:
- the packet to send to nearby players when the block entity's observable
state changes, or
nullto not send the packet - See Also:
- Mappings:
Namespace Name Mixin selector named toUpdatePacketLnet/minecraft/block/entity/ConduitBlockEntity;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;intermediary method_38247Lnet/minecraft/class_2597;method_38247()Lnet/minecraft/class_2622;official bLdpv;b()Lacp;
-
toInitialChunkDataNbt
Returns the serialized state of this block entity that is observable by clients.This is sent alongside the initial chunk data, as well as when the block entity implements
toUpdatePacket()and decides to use the defaultBlockEntityUpdateS2CPacket."Observable state" is a state that clients can observe without specific interaction. For example,
CampfireBlockEntity's cooked items are observable states, but chests' inventories are not observable states, since the player must first open that chest before they can see the contents.To send all NBT data of this block entity saved to disk, return
BlockEntity.createNbt(net.minecraft.registry.RegistryWrapper.WrapperLookup).- Overrides:
toInitialChunkDataNbtin classBlockEntity- Returns:
- the serialized state of this block entity that is observable by clients
- See Also:
- Mappings:
Namespace Name Mixin selector named toInitialChunkDataNbtLnet/minecraft/block/entity/BlockEntity;toInitialChunkDataNbt(Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/nbt/NbtCompound;intermediary method_16887Lnet/minecraft/class_2586;method_16887(Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_2487;official aLdpj;a(Ljk$a;)Lus;
-
clientTick
public static void clientTick(World world, BlockPos pos, BlockState state, ConduitBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector named clientTickLnet/minecraft/block/entity/ConduitBlockEntity;clientTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/ConduitBlockEntity;)Vintermediary method_31675Lnet/minecraft/class_2597;method_31675(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2597;)Vofficial aLdpv;a(Ldca;Liz;Ldse;Ldpv;)V
-
serverTick
public static void serverTick(World world, BlockPos pos, BlockState state, ConduitBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector named serverTickLnet/minecraft/block/entity/ConduitBlockEntity;serverTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/ConduitBlockEntity;)Vintermediary method_31677Lnet/minecraft/class_2597;method_31677(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2597;)Vofficial bLdpv;b(Ldca;Liz;Ldse;Ldpv;)V
-
openEye
- Mappings:
Namespace Name Mixin selector named openEyeLnet/minecraft/block/entity/ConduitBlockEntity;openEye(Lnet/minecraft/block/entity/ConduitBlockEntity;Ljava/util/List;)Vintermediary method_31676Lnet/minecraft/class_2597;method_31676(Lnet/minecraft/class_2597;Ljava/util/List;)Vofficial aLdpv;a(Ldpv;Ljava/util/List;)V
-
updateActivatingBlocks
private static boolean updateActivatingBlocks(World world, BlockPos pos, List<BlockPos> activatingBlocks) - Mappings:
Namespace Name Mixin selector named updateActivatingBlocksLnet/minecraft/block/entity/ConduitBlockEntity;updateActivatingBlocks(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/List;)Zintermediary method_11069Lnet/minecraft/class_2597;method_11069(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Ljava/util/List;)Zofficial aLdpv;a(Ldca;Liz;Ljava/util/List;)Z
-
givePlayersEffects
- Mappings:
Namespace Name Mixin selector named givePlayersEffectsLnet/minecraft/block/entity/ConduitBlockEntity;givePlayersEffects(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/List;)Vintermediary method_11055Lnet/minecraft/class_2597;method_11055(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Ljava/util/List;)Vofficial bLdpv;b(Ldca;Liz;Ljava/util/List;)V
-
attackHostileEntity
private static void attackHostileEntity(World world, BlockPos pos, BlockState state, List<BlockPos> activatingBlocks, ConduitBlockEntity blockEntity) - Mappings:
Namespace Name Mixin selector named attackHostileEntityLnet/minecraft/block/entity/ConduitBlockEntity;attackHostileEntity(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Ljava/util/List;Lnet/minecraft/block/entity/ConduitBlockEntity;)Vintermediary method_11068Lnet/minecraft/class_2597;method_11068(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Ljava/util/List;Lnet/minecraft/class_2597;)Vofficial aLdpv;a(Ldca;Liz;Ldse;Ljava/util/List;Ldpv;)V
-
updateTargetEntity
- Mappings:
Namespace Name Mixin selector named updateTargetEntityLnet/minecraft/block/entity/ConduitBlockEntity;updateTargetEntity(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/entity/ConduitBlockEntity;)Vintermediary method_11064Lnet/minecraft/class_2597;method_11064(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2597;)Vofficial aLdpv;a(Ldca;Liz;Ldpv;)V
-
getAttackZone
- Mappings:
Namespace Name Mixin selector named getAttackZoneLnet/minecraft/block/entity/ConduitBlockEntity;getAttackZone(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Box;intermediary method_11059Lnet/minecraft/class_2597;method_11059(Lnet/minecraft/class_2338;)Lnet/minecraft/class_238;official aLdpv;a(Liz;)Levo;
-
findTargetEntity
@Nullable private static @Nullable LivingEntity findTargetEntity(World world, BlockPos pos, UUID uuid) - Mappings:
Namespace Name Mixin selector named findTargetEntityLnet/minecraft/block/entity/ConduitBlockEntity;findTargetEntity(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/UUID;)Lnet/minecraft/entity/LivingEntity;intermediary method_11056Lnet/minecraft/class_2597;method_11056(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Ljava/util/UUID;)Lnet/minecraft/class_1309;official aLdpv;a(Ldca;Liz;Ljava/util/UUID;)Lbtr;
-
spawnNautilusParticles
private static void spawnNautilusParticles(World world, BlockPos pos, List<BlockPos> activatingBlocks, @Nullable @Nullable Entity entity, int ticks) - Mappings:
Namespace Name Mixin selector named spawnNautilusParticlesLnet/minecraft/block/entity/ConduitBlockEntity;spawnNautilusParticles(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/List;Lnet/minecraft/entity/Entity;I)Vintermediary method_11063Lnet/minecraft/class_2597;method_11063(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Ljava/util/List;Lnet/minecraft/class_1297;I)Vofficial aLdpv;a(Ldca;Liz;Ljava/util/List;Lbsw;I)V
-
isActive
public boolean isActive()- Mappings:
Namespace Name Mixin selector named isActiveLnet/minecraft/block/entity/ConduitBlockEntity;isActive()Zintermediary method_11065Lnet/minecraft/class_2597;method_11065()Zofficial cLdpv;c()Z
-
isEyeOpen
public boolean isEyeOpen()- Mappings:
Namespace Name Mixin selector named isEyeOpenLnet/minecraft/block/entity/ConduitBlockEntity;isEyeOpen()Zintermediary method_11066Lnet/minecraft/class_2597;method_11066()Zofficial dLdpv;d()Z
-
setEyeOpen
private void setEyeOpen(boolean eyeOpen) - Mappings:
Namespace Name Mixin selector named setEyeOpenLnet/minecraft/block/entity/ConduitBlockEntity;setEyeOpen(Z)Vintermediary method_11062Lnet/minecraft/class_2597;method_11062(Z)Vofficial aLdpv;a(Z)V
-
getRotation
public float getRotation(float tickDelta) - Mappings:
Namespace Name Mixin selector named getRotationLnet/minecraft/block/entity/ConduitBlockEntity;getRotation(F)Fintermediary method_11061Lnet/minecraft/class_2597;method_11061(F)Fofficial aLdpv;a(F)F
-