Class MineTravellingBlockEntity

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

public class MineTravellingBlockEntity extends BlockEntity
Mappings:
Namespace Name
named net/minecraft/block/entity/MineTravellingBlockEntity
intermediary net/minecraft/class_11073
official ecw
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/block/entity/MineTravellingBlockEntity;LOGGER:Lorg/slf4j/Logger;
      intermediary field_58964 Lnet/minecraft/class_11073;field_58964:Lorg/slf4j/Logger;
      official a Lecw;a:Lorg/slf4j/Logger;
    • field_58965

      private static final int field_58965
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_58965 Lnet/minecraft/block/entity/MineTravellingBlockEntity;field_58965:I
      intermediary field_58965 Lnet/minecraft/class_11073;field_58965:I
      official b Lecw;b:I
    • age

      private long age
      Mappings:
      Namespace Name Mixin selector
      named age Lnet/minecraft/block/entity/MineTravellingBlockEntity;age:J
      intermediary field_58966 Lnet/minecraft/class_11073;field_58966:J
      official c Lecw;c:J
    • dimension

      private RegistryKey<DimensionOptions> dimension
      Mappings:
      Namespace Name Mixin selector
      named dimension Lnet/minecraft/block/entity/MineTravellingBlockEntity;dimension:Lnet/minecraft/registry/RegistryKey;
      intermediary field_58967 Lnet/minecraft/class_11073;field_58967:Lnet/minecraft/class_5321;
      official d Lecw;d:Lama;
    • revisit

      private boolean revisit
      Mappings:
      Namespace Name Mixin selector
      named revisit Lnet/minecraft/block/entity/MineTravellingBlockEntity;revisit:Z
      intermediary field_58968 Lnet/minecraft/class_11073;field_58968:Z
      official e Lecw;e:Z
  • Constructor Details

    • MineTravellingBlockEntity

      public MineTravellingBlockEntity(BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/block/entity/MineTravellingBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
      intermediary <init> Lnet/minecraft/class_11073;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      official <init> Lecw;<init>(Lix;Lees;)V
  • Method Details

    • getAge

      public long getAge()
      Mappings:
      Namespace Name Mixin selector
      named getAge Lnet/minecraft/block/entity/MineTravellingBlockEntity;getAge()J
      intermediary method_69742 Lnet/minecraft/class_11073;method_69742()J
      official a Lecw;a()J
    • 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 Lebn;b(Luc;Ljj$a;)V
    • 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 Lebn;a(Luc;Ljj$a;)V
    • setDimension

      public void setDimension(RegistryKey<DimensionOptions> dimension)
      Mappings:
      Namespace Name Mixin selector
      named setDimension Lnet/minecraft/block/entity/MineTravellingBlockEntity;setDimension(Lnet/minecraft/registry/RegistryKey;)V
      intermediary method_69744 Lnet/minecraft/class_11073;method_69744(Lnet/minecraft/class_5321;)V
      official a Lecw;a(Lama;)V
    • setRevisit

      public void setRevisit(boolean revisit)
      Mappings:
      Namespace Name Mixin selector
      named setRevisit Lnet/minecraft/block/entity/MineTravellingBlockEntity;setRevisit(Z)V
      intermediary method_69747 Lnet/minecraft/class_11073;method_69747(Z)V
      official a Lecw;a(Z)V
    • clientTick

      public static void clientTick(World world, BlockPos pos, BlockState state, MineTravellingBlockEntity blockEntity)
      Mappings:
      Namespace Name Mixin selector
      named clientTick Lnet/minecraft/block/entity/MineTravellingBlockEntity;clientTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/MineTravellingBlockEntity;)V
      intermediary method_69745 Lnet/minecraft/class_11073;method_69745(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_11073;)V
      official a Lecw;a(Ldmy;Lix;Lees;Lecw;)V
    • serverTick

      public static void serverTick(World world, BlockPos pos, BlockState state, MineTravellingBlockEntity blockEntity)
      Mappings:
      Namespace Name Mixin selector
      named serverTick Lnet/minecraft/block/entity/MineTravellingBlockEntity;serverTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/MineTravellingBlockEntity;)V
      intermediary method_69749 Lnet/minecraft/class_11073;method_69749(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_11073;)V
      official b Lecw;b(Ldmy;Lix;Lees;Lecw;)V
    • method_69750

      public boolean method_69750()
      Mappings:
      Namespace Name Mixin selector
      named method_69750 Lnet/minecraft/block/entity/MineTravellingBlockEntity;method_69750()Z
      intermediary method_69750 Lnet/minecraft/class_11073;method_69750()Z
      official c Lecw;c()Z
    • method_69751

      public boolean method_69751()
      Mappings:
      Namespace Name Mixin selector
      named method_69751 Lnet/minecraft/block/entity/MineTravellingBlockEntity;method_69751()Z
      intermediary method_69751 Lnet/minecraft/class_11073;method_69751()Z
      official d Lecw;d()Z
    • method_69743

      public float method_69743(float float2)
      Mappings:
      Namespace Name Mixin selector
      named method_69743 Lnet/minecraft/block/entity/MineTravellingBlockEntity;method_69743(F)F
      intermediary method_69743 Lnet/minecraft/class_11073;method_69743(F)F
      official a Lecw;a(F)F
    • method_69748

      public float method_69748(float float2)
      Mappings:
      Namespace Name Mixin selector
      named method_69748 Lnet/minecraft/block/entity/MineTravellingBlockEntity;method_69748(F)F
      intermediary method_69748 Lnet/minecraft/class_11073;method_69748(F)F
      official b Lecw;b(F)F
    • 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/MineTravellingBlockEntity;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;
      intermediary method_69752 Lnet/minecraft/class_11073;method_69752()Lnet/minecraft/class_2622;
      official f Lecw;f()Lacn;
    • 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 Lebn;a(Ljj$a;)Luc;
    • method_69746

      public boolean method_69746(Direction direction)
      Mappings:
      Namespace Name Mixin selector
      named method_69746 Lnet/minecraft/block/entity/MineTravellingBlockEntity;method_69746(Lnet/minecraft/util/math/Direction;)Z
      intermediary method_69746 Lnet/minecraft/class_11073;method_69746(Lnet/minecraft/class_2350;)Z
      official a Lecw;a(Ljd;)Z
    • method_69753

      public int method_69753()
      Mappings:
      Namespace Name Mixin selector
      named method_69753 Lnet/minecraft/block/entity/MineTravellingBlockEntity;method_69753()I
      intermediary method_69753 Lnet/minecraft/class_11073;method_69753()I
      official h Lecw;h()I
    • getWorldKey

      public RegistryKey<World> getWorldKey()
      Mappings:
      Namespace Name Mixin selector
      named getWorldKey Lnet/minecraft/block/entity/MineTravellingBlockEntity;getWorldKey()Lnet/minecraft/registry/RegistryKey;
      intermediary method_69754 Lnet/minecraft/class_11073;method_69754()Lnet/minecraft/class_5321;
      official k Lecw;k()Lama;
    • isRevisit

      public boolean isRevisit()
      Mappings:
      Namespace Name Mixin selector
      named isRevisit Lnet/minecraft/block/entity/MineTravellingBlockEntity;isRevisit()Z
      intermediary method_69755 Lnet/minecraft/class_11073;method_69755()Z
      official l Lecw;l()Z