Class ConduitBlockEntity

java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.ConduitBlockEntity

public class ConduitBlockEntity extends BlockEntity
Mappings:
Namespace Name
named net/minecraft/block/entity/ConduitBlockEntity
intermediary net/minecraft/class_2597
official dvi
  • Field Details

    • field_31333

      private static final int field_31333
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_31333 Lnet/minecraft/block/entity/ConduitBlockEntity;field_31333:I
      intermediary field_31333 Lnet/minecraft/class_2597;field_31333:I
      official b Ldvi;b:I
    • field_31334

      private static final int field_31334
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_31334 Lnet/minecraft/block/entity/ConduitBlockEntity;field_31334:I
      intermediary field_31334 Lnet/minecraft/class_2597;field_31334:I
      official c Ldvi;c:I
    • field_31335

      private static final float field_31335
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_31335 Lnet/minecraft/block/entity/ConduitBlockEntity;field_31335:F
      intermediary field_31335 Lnet/minecraft/class_2597;field_31335:F
      official d Ldvi;d:F
    • field_31336

      private static final int field_31336
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_31336 Lnet/minecraft/block/entity/ConduitBlockEntity;field_31336:I
      intermediary field_31336 Lnet/minecraft/class_2597;field_31336:I
      official e Ldvi;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_ACTIVATE Lnet/minecraft/block/entity/ConduitBlockEntity;MIN_BLOCKS_TO_ACTIVATE:I
      intermediary field_31337 Lnet/minecraft/class_2597;field_31337:I
      official f Ldvi;f:I
    • field_31338

      private static final int field_31338
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_31338 Lnet/minecraft/block/entity/ConduitBlockEntity;field_31338:I
      intermediary field_31338 Lnet/minecraft/class_2597;field_31338:I
      official g Ldvi;g:I
    • ACTIVATING_BLOCKS

      private static final Block[] ACTIVATING_BLOCKS
      Mappings:
      Namespace Name Mixin selector
      named ACTIVATING_BLOCKS Lnet/minecraft/block/entity/ConduitBlockEntity;ACTIVATING_BLOCKS:[Lnet/minecraft/block/Block;
      intermediary field_11931 Lnet/minecraft/class_2597;field_11931:[Lnet/minecraft/class_2248;
      official h Ldvi;h:[Ldkl;
    • ticks

      public int ticks
      Mappings:
      Namespace Name Mixin selector
      named ticks Lnet/minecraft/block/entity/ConduitBlockEntity;ticks:I
      intermediary field_11936 Lnet/minecraft/class_2597;field_11936:I
      official a Ldvi;a:I
    • ticksActive

      private float ticksActive
      Mappings:
      Namespace Name Mixin selector
      named ticksActive Lnet/minecraft/block/entity/ConduitBlockEntity;ticksActive:F
      intermediary field_11932 Lnet/minecraft/class_2597;field_11932:F
      official i Ldvi;i:F
    • active

      private boolean active
      Mappings:
      Namespace Name Mixin selector
      named active Lnet/minecraft/block/entity/ConduitBlockEntity;active:Z
      intermediary field_11934 Lnet/minecraft/class_2597;field_11934:Z
      official j Ldvi;j:Z
    • eyeOpen

      private boolean eyeOpen
      Mappings:
      Namespace Name Mixin selector
      named eyeOpen Lnet/minecraft/block/entity/ConduitBlockEntity;eyeOpen:Z
      intermediary field_11933 Lnet/minecraft/class_2597;field_11933:Z
      official k Ldvi;k:Z
    • activatingBlocks

      private final List<BlockPos> activatingBlocks
      Mappings:
      Namespace Name Mixin selector
      named activatingBlocks Lnet/minecraft/block/entity/ConduitBlockEntity;activatingBlocks:Ljava/util/List;
      intermediary field_11937 Lnet/minecraft/class_2597;field_11937:Ljava/util/List;
      official l Ldvi;l:Ljava/util/List;
    • targetEntity

      @Nullable private @Nullable LivingEntity targetEntity
      Mappings:
      Namespace Name Mixin selector
      named targetEntity Lnet/minecraft/block/entity/ConduitBlockEntity;targetEntity:Lnet/minecraft/entity/LivingEntity;
      intermediary field_11939 Lnet/minecraft/class_2597;field_11939:Lnet/minecraft/class_1309;
      official m Ldvi;m:Lbwf;
    • targetUuid

      @Nullable private @Nullable UUID targetUuid
      Mappings:
      Namespace Name Mixin selector
      named targetUuid Lnet/minecraft/block/entity/ConduitBlockEntity;targetUuid:Ljava/util/UUID;
      intermediary field_11935 Lnet/minecraft/class_2597;field_11935:Ljava/util/UUID;
      official n Ldvi;n:Ljava/util/UUID;
    • nextAmbientSoundTime

      private long nextAmbientSoundTime
      Mappings:
      Namespace Name Mixin selector
      named nextAmbientSoundTime Lnet/minecraft/block/entity/ConduitBlockEntity;nextAmbientSoundTime:J
      intermediary field_11938 Lnet/minecraft/class_2597;field_11938:J
      official r Ldvi;r:J
  • Constructor Details

    • ConduitBlockEntity

      public ConduitBlockEntity(BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/block/entity/ConduitBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
      intermediary <init> Lnet/minecraft/class_2597;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      official <init> Ldvi;<init>(Ljh;Ldxu;)V
  • Method Details

    • readNbt

      protected void readNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registries)
      Reads data from nbt. 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.

      nbt might 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:
      readNbt in class BlockEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readNbt Lnet/minecraft/block/entity/BlockEntity;readNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)V
      intermediary method_11014 Lnet/minecraft/class_2586;method_11014(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)V
      official a Lduw;a(Lux;Ljs$a;)V
    • writeNbt

      protected void writeNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registries)
      Writes data to nbt. 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:
      writeNbt in class BlockEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeNbt Lnet/minecraft/block/entity/BlockEntity;writeNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)V
      intermediary method_11007 Lnet/minecraft/class_2586;method_11007(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)V
      official b Lduw;b(Lux;Ljs$a;)V
    • toUpdatePacket

      public BlockEntityUpdateS2CPacket toUpdatePacket()
      Description copied from class: BlockEntity
      Returns the packet to send to nearby players when the block entity's observable state changes, or null to not send the packet.

      If the data returned by initial chunk data is suitable for updates, the following shortcut can be used to create an update packet: BlockEntityUpdateS2CPacket.create(this). The NBT will be passed to BlockEntity.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:
      toUpdatePacket in class BlockEntity
      Returns:
      the packet to send to nearby players when the block entity's observable state changes, or null to not send the packet
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named toUpdatePacket Lnet/minecraft/block/entity/ConduitBlockEntity;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;
      intermediary method_38247 Lnet/minecraft/class_2597;method_38247()Lnet/minecraft/class_2622;
      official b Ldvi;b()Lacy;
    • toInitialChunkDataNbt

      public NbtCompound toInitialChunkDataNbt(RegistryWrapper.WrapperLookup registries)
      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 default BlockEntityUpdateS2CPacket.

      "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:
      toInitialChunkDataNbt in class BlockEntity
      Returns:
      the serialized state of this block entity that is observable by clients
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named toInitialChunkDataNbt Lnet/minecraft/block/entity/BlockEntity;toInitialChunkDataNbt(Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/nbt/NbtCompound;
      intermediary method_16887 Lnet/minecraft/class_2586;method_16887(Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_2487;
      official a Lduw;a(Ljs$a;)Lux;
    • clientTick

      public static void clientTick(World world, BlockPos pos, BlockState state, ConduitBlockEntity blockEntity)
      Mappings:
      Namespace Name Mixin selector
      named clientTick Lnet/minecraft/block/entity/ConduitBlockEntity;clientTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/ConduitBlockEntity;)V
      intermediary method_31675 Lnet/minecraft/class_2597;method_31675(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2597;)V
      official a Ldvi;a(Ldhh;Ljh;Ldxu;Ldvi;)V
    • serverTick

      public static void serverTick(World world, BlockPos pos, BlockState state, ConduitBlockEntity blockEntity)
      Mappings:
      Namespace Name Mixin selector
      named serverTick Lnet/minecraft/block/entity/ConduitBlockEntity;serverTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/ConduitBlockEntity;)V
      intermediary method_31677 Lnet/minecraft/class_2597;method_31677(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2597;)V
      official b Ldvi;b(Ldhh;Ljh;Ldxu;Ldvi;)V
    • openEye

      private static void openEye(ConduitBlockEntity blockEntity, List<BlockPos> activatingBlocks)
      Mappings:
      Namespace Name Mixin selector
      named openEye Lnet/minecraft/block/entity/ConduitBlockEntity;openEye(Lnet/minecraft/block/entity/ConduitBlockEntity;Ljava/util/List;)V
      intermediary method_31676 Lnet/minecraft/class_2597;method_31676(Lnet/minecraft/class_2597;Ljava/util/List;)V
      official a Ldvi;a(Ldvi;Ljava/util/List;)V
    • updateActivatingBlocks

      private static boolean updateActivatingBlocks(World world, BlockPos pos, List<BlockPos> activatingBlocks)
      Mappings:
      Namespace Name Mixin selector
      named updateActivatingBlocks Lnet/minecraft/block/entity/ConduitBlockEntity;updateActivatingBlocks(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/List;)Z
      intermediary method_11069 Lnet/minecraft/class_2597;method_11069(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Ljava/util/List;)Z
      official a Ldvi;a(Ldhh;Ljh;Ljava/util/List;)Z
    • givePlayersEffects

      private static void givePlayersEffects(World world, BlockPos pos, List<BlockPos> activatingBlocks)
      Mappings:
      Namespace Name Mixin selector
      named givePlayersEffects Lnet/minecraft/block/entity/ConduitBlockEntity;givePlayersEffects(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/List;)V
      intermediary method_11055 Lnet/minecraft/class_2597;method_11055(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Ljava/util/List;)V
      official b Ldvi;b(Ldhh;Ljh;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 attackHostileEntity Lnet/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;)V
      intermediary method_11068 Lnet/minecraft/class_2597;method_11068(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Ljava/util/List;Lnet/minecraft/class_2597;)V
      official a Ldvi;a(Ldhh;Ljh;Ldxu;Ljava/util/List;Ldvi;)V
    • updateTargetEntity

      private static void updateTargetEntity(World world, BlockPos pos, ConduitBlockEntity blockEntity)
      Mappings:
      Namespace Name Mixin selector
      named updateTargetEntity Lnet/minecraft/block/entity/ConduitBlockEntity;updateTargetEntity(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/entity/ConduitBlockEntity;)V
      intermediary method_11064 Lnet/minecraft/class_2597;method_11064(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2597;)V
      official a Ldvi;a(Ldhh;Ljh;Ldvi;)V
    • getAttackZone

      private static Box getAttackZone(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named getAttackZone Lnet/minecraft/block/entity/ConduitBlockEntity;getAttackZone(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Box;
      intermediary method_11059 Lnet/minecraft/class_2597;method_11059(Lnet/minecraft/class_2338;)Lnet/minecraft/class_238;
      official a Ldvi;a(Ljh;)Lfbs;
    • findTargetEntity

      @Nullable private static @Nullable LivingEntity findTargetEntity(World world, BlockPos pos, UUID uuid)
      Mappings:
      Namespace Name Mixin selector
      named findTargetEntity Lnet/minecraft/block/entity/ConduitBlockEntity;findTargetEntity(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/UUID;)Lnet/minecraft/entity/LivingEntity;
      intermediary method_11056 Lnet/minecraft/class_2597;method_11056(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Ljava/util/UUID;)Lnet/minecraft/class_1309;
      official a Ldvi;a(Ldhh;Ljh;Ljava/util/UUID;)Lbwf;
    • spawnNautilusParticles

      private static void spawnNautilusParticles(World world, BlockPos pos, List<BlockPos> activatingBlocks, @Nullable @Nullable Entity entity, int ticks)
      Mappings:
      Namespace Name Mixin selector
      named spawnNautilusParticles Lnet/minecraft/block/entity/ConduitBlockEntity;spawnNautilusParticles(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/List;Lnet/minecraft/entity/Entity;I)V
      intermediary method_11063 Lnet/minecraft/class_2597;method_11063(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Ljava/util/List;Lnet/minecraft/class_1297;I)V
      official a Ldvi;a(Ldhh;Ljh;Ljava/util/List;Lbvj;I)V
    • isActive

      public boolean isActive()
      Mappings:
      Namespace Name Mixin selector
      named isActive Lnet/minecraft/block/entity/ConduitBlockEntity;isActive()Z
      intermediary method_11065 Lnet/minecraft/class_2597;method_11065()Z
      official c Ldvi;c()Z
    • isEyeOpen

      public boolean isEyeOpen()
      Mappings:
      Namespace Name Mixin selector
      named isEyeOpen Lnet/minecraft/block/entity/ConduitBlockEntity;isEyeOpen()Z
      intermediary method_11066 Lnet/minecraft/class_2597;method_11066()Z
      official d Ldvi;d()Z
    • setEyeOpen

      private void setEyeOpen(boolean eyeOpen)
      Mappings:
      Namespace Name Mixin selector
      named setEyeOpen Lnet/minecraft/block/entity/ConduitBlockEntity;setEyeOpen(Z)V
      intermediary method_11062 Lnet/minecraft/class_2597;method_11062(Z)V
      official a Ldvi;a(Z)V
    • getRotation

      public float getRotation(float tickDelta)
      Mappings:
      Namespace Name Mixin selector
      named getRotation Lnet/minecraft/block/entity/ConduitBlockEntity;getRotation(F)F
      intermediary method_11061 Lnet/minecraft/class_2597;method_11061(F)F
      official a Ldvi;a(F)F