Class CreakingHeartBlockEntity

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

public class CreakingHeartBlockEntity extends BlockEntity
Mappings:
Namespace Name
named net/minecraft/block/entity/CreakingHeartBlockEntity
intermediary net/minecraft/class_10323
official dup
  • Field Details

    • field_54776

      private static final int field_54776
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_54776 Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_54776:I
      intermediary field_54776 Lnet/minecraft/class_10323;field_54776:I
      official b Ldup;b:I
    • field_54775

      public static final int field_54775
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_54775 Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_54775:I
      intermediary field_54775 Lnet/minecraft/class_10323;field_54775:I
      official a Ldup;a:I
    • field_54777

      private static final int field_54777
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_54777 Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_54777:I
      intermediary field_54777 Lnet/minecraft/class_10323;field_54777:I
      official c Ldup;c:I
    • field_54778

      private static final int field_54778
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_54778 Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_54778:I
      intermediary field_54778 Lnet/minecraft/class_10323;field_54778:I
      official d Ldup;d:I
    • field_54779

      private static final int field_54779
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_54779 Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_54779:I
      intermediary field_54779 Lnet/minecraft/class_10323;field_54779:I
      official e Ldup;e:I
    • field_54780

      private static final int field_54780
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_54780 Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_54780:I
      intermediary field_54780 Lnet/minecraft/class_10323;field_54780:I
      official f Ldup;f:I
    • field_54781

      private static final int field_54781
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_54781 Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_54781:I
      intermediary field_54781 Lnet/minecraft/class_10323;field_54781:I
      official g Ldup;g:I
    • field_55498

      private static final int field_55498
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_55498 Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_55498:I
      intermediary field_55498 Lnet/minecraft/class_10323;field_55498:I
      official h Ldup;h:I
    • field_54782

      private static final int field_54782
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_54782 Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_54782:I
      intermediary field_54782 Lnet/minecraft/class_10323;field_54782:I
      official i Ldup;i:I
    • field_54783

      private static final int field_54783
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_54783 Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_54783:I
      intermediary field_54783 Lnet/minecraft/class_10323;field_54783:I
      official j Ldup;j:I
    • field_54784

      private static final int field_54784
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_54784 Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_54784:I
      intermediary field_54784 Lnet/minecraft/class_10323;field_54784:I
      official k Ldup;k:I
    • field_54785

      private static final int field_54785
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_54785 Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_54785:I
      intermediary field_54785 Lnet/minecraft/class_10323;field_54785:I
      official l Ldup;l:I
    • field_55085

      private static final int field_55085
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_55085 Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_55085:I
      intermediary field_55085 Lnet/minecraft/class_10323;field_55085:I
      official m Ldup;m:I
    • field_55086

      private static final int field_55086
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_55086 Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_55086:I
      intermediary field_55086 Lnet/minecraft/class_10323;field_55086:I
      official q Ldup;q:I
    • field_55499

      private static final int field_55499
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_55499 Lnet/minecraft/block/entity/CreakingHeartBlockEntity;field_55499:I
      intermediary field_55499 Lnet/minecraft/class_10323;field_55499:I
      official r Ldup;r:I
    • DEFAULT_CREAKING_PUPPET

      private static final Optional<CreakingEntity> DEFAULT_CREAKING_PUPPET
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT_CREAKING_PUPPET Lnet/minecraft/block/entity/CreakingHeartBlockEntity;DEFAULT_CREAKING_PUPPET:Ljava/util/Optional;
      intermediary field_55500 Lnet/minecraft/class_10323;field_55500:Ljava/util/Optional;
      official s Ldup;s:Ljava/util/Optional;
    • creakingPuppet

      @Nullable private @Nullable com.mojang.datafixers.util.Either<CreakingEntity,UUID> creakingPuppet
      Mappings:
      Namespace Name Mixin selector
      named creakingPuppet Lnet/minecraft/block/entity/CreakingHeartBlockEntity;creakingPuppet:Lcom/mojang/datafixers/util/Either;
      intermediary field_55501 Lnet/minecraft/class_10323;field_55501:Lcom/mojang/datafixers/util/Either;
      official t Ldup;t:Lcom/mojang/datafixers/util/Either;
    • ticks

      private long ticks
      Mappings:
      Namespace Name Mixin selector
      named ticks Lnet/minecraft/block/entity/CreakingHeartBlockEntity;ticks:J
      intermediary field_55502 Lnet/minecraft/class_10323;field_55502:J
      official u Ldup;u:J
    • creakingUpdateTimer

      private int creakingUpdateTimer
      Mappings:
      Namespace Name Mixin selector
      named creakingUpdateTimer Lnet/minecraft/block/entity/CreakingHeartBlockEntity;creakingUpdateTimer:I
      intermediary field_54787 Lnet/minecraft/class_10323;field_54787:I
      official v Ldup;v:I
    • trailParticlesSpawnTimer

      private int trailParticlesSpawnTimer
      Mappings:
      Namespace Name Mixin selector
      named trailParticlesSpawnTimer Lnet/minecraft/block/entity/CreakingHeartBlockEntity;trailParticlesSpawnTimer:I
      intermediary field_54788 Lnet/minecraft/class_10323;field_54788:I
      official w Ldup;w:I
    • lastCreakingPuppetPos

      @Nullable private @Nullable Vec3d lastCreakingPuppetPos
      Mappings:
      Namespace Name Mixin selector
      named lastCreakingPuppetPos Lnet/minecraft/block/entity/CreakingHeartBlockEntity;lastCreakingPuppetPos:Lnet/minecraft/util/math/Vec3d;
      intermediary field_54789 Lnet/minecraft/class_10323;field_54789:Lnet/minecraft/class_243;
      official x Ldup;x:Lfbb;
    • comparatorOutput

      private int comparatorOutput
      Mappings:
      Namespace Name Mixin selector
      named comparatorOutput Lnet/minecraft/block/entity/CreakingHeartBlockEntity;comparatorOutput:I
      intermediary field_54910 Lnet/minecraft/class_10323;field_54910:I
      official y Ldup;y:I
  • Constructor Details

    • CreakingHeartBlockEntity

      public CreakingHeartBlockEntity(BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/block/entity/CreakingHeartBlockEntity;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
      intermediary <init> Lnet/minecraft/class_10323;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      official <init> Ldup;<init>(Lji;Ldwy;)V
  • Method Details

    • tick

      public static void tick(World world, BlockPos pos, BlockState state, CreakingHeartBlockEntity blockEntity)
      Mappings:
      Namespace Name Mixin selector
      named tick Lnet/minecraft/block/entity/CreakingHeartBlockEntity;tick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/CreakingHeartBlockEntity;)V
      intermediary method_64804 Lnet/minecraft/class_10323;method_64804(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_10323;)V
      official a Ldup;a(Ldgj;Lji;Ldwy;Ldup;)V
    • getDistanceToPuppet

      private double getDistanceToPuppet()
      Mappings:
      Namespace Name Mixin selector
      named getDistanceToPuppet Lnet/minecraft/block/entity/CreakingHeartBlockEntity;getDistanceToPuppet()D
      intermediary method_65012 Lnet/minecraft/class_10323;method_65012()D
      official j Ldup;j()D
    • clearCreakingPuppet

      private void clearCreakingPuppet()
      Mappings:
      Namespace Name Mixin selector
      named clearCreakingPuppet Lnet/minecraft/block/entity/CreakingHeartBlockEntity;clearCreakingPuppet()V
      intermediary method_65907 Lnet/minecraft/class_10323;method_65907()V
      official k Ldup;k()V
    • setCreakingPuppet

      public void setCreakingPuppet(CreakingEntity creakingPuppet)
      Mappings:
      Namespace Name Mixin selector
      named setCreakingPuppet Lnet/minecraft/block/entity/CreakingHeartBlockEntity;setCreakingPuppet(Lnet/minecraft/entity/mob/CreakingEntity;)V
      intermediary method_65905 Lnet/minecraft/class_10323;method_65905(Lnet/minecraft/class_10275;)V
      official a Ldup;a(Lcnd;)V
    • setCreakingPuppetFromUuid

      public void setCreakingPuppetFromUuid(UUID creakingPuppetUuid)
      Mappings:
      Namespace Name Mixin selector
      named setCreakingPuppetFromUuid Lnet/minecraft/block/entity/CreakingHeartBlockEntity;setCreakingPuppetFromUuid(Ljava/util/UUID;)V
      intermediary method_65906 Lnet/minecraft/class_10323;method_65906(Ljava/util/UUID;)V
      official a Ldup;a(Ljava/util/UUID;)V
    • getCreakingPuppet

      private Optional<CreakingEntity> getCreakingPuppet()
      Mappings:
      Namespace Name Mixin selector
      named getCreakingPuppet Lnet/minecraft/block/entity/CreakingHeartBlockEntity;getCreakingPuppet()Ljava/util/Optional;
      intermediary method_65805 Lnet/minecraft/class_10323;method_65805()Ljava/util/Optional;
      official s Ldup;s()Ljava/util/Optional;
    • spawnCreakingPuppet

      @Nullable private static @Nullable CreakingEntity spawnCreakingPuppet(ServerWorld world, CreakingHeartBlockEntity blockEntity)
      Mappings:
      Namespace Name Mixin selector
      named spawnCreakingPuppet Lnet/minecraft/block/entity/CreakingHeartBlockEntity;spawnCreakingPuppet(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/block/entity/CreakingHeartBlockEntity;)Lnet/minecraft/entity/mob/CreakingEntity;
      intermediary method_64801 Lnet/minecraft/class_10323;method_64801(Lnet/minecraft/class_3218;Lnet/minecraft/class_10323;)Lnet/minecraft/class_10275;
      official a Ldup;a(Lard;Ldup;)Lcnd;
    • 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/CreakingHeartBlockEntity;toUpdatePacket()Lnet/minecraft/network/packet/s2c/play/BlockEntityUpdateS2CPacket;
      intermediary method_64805 Lnet/minecraft/class_10323;method_64805()Lnet/minecraft/class_2622;
      official b Ldup;b()Labs;
    • 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 Ldua;a(Ljt$a;)Ltq;
    • onPuppetDamage

      public void onPuppetDamage()
      Mappings:
      Namespace Name Mixin selector
      named onPuppetDamage Lnet/minecraft/block/entity/CreakingHeartBlockEntity;onPuppetDamage()V
      intermediary method_64806 Lnet/minecraft/class_10323;method_64806()V
      official c Ldup;c()V
    • findResinGenerationPos

      private Optional<BlockPos> findResinGenerationPos()
      Mappings:
      Namespace Name Mixin selector
      named findResinGenerationPos Lnet/minecraft/block/entity/CreakingHeartBlockEntity;findResinGenerationPos()Ljava/util/Optional;
      intermediary method_65170 Lnet/minecraft/class_10323;method_65170()Ljava/util/Optional;
      official t Ldup;t()Ljava/util/Optional;
    • spawnTrailParticles

      private void spawnTrailParticles(ServerWorld world, int count, boolean towardsPuppet)
      Mappings:
      Namespace Name Mixin selector
      named spawnTrailParticles Lnet/minecraft/block/entity/CreakingHeartBlockEntity;spawnTrailParticles(Lnet/minecraft/server/world/ServerWorld;IZ)V
      intermediary method_64800 Lnet/minecraft/class_10323;method_64800(Lnet/minecraft/class_3218;IZ)V
      official a Ldup;a(Lard;IZ)V
    • killPuppet

      public void killPuppet(@Nullable @Nullable DamageSource damageSource)
      Mappings:
      Namespace Name Mixin selector
      named killPuppet Lnet/minecraft/block/entity/CreakingHeartBlockEntity;killPuppet(Lnet/minecraft/entity/damage/DamageSource;)V
      intermediary method_64802 Lnet/minecraft/class_10323;method_64802(Lnet/minecraft/class_1282;)V
      official a Ldup;a(Lbtc;)V
    • isPuppet

      public boolean isPuppet(CreakingEntity creaking)
      Mappings:
      Namespace Name Mixin selector
      named isPuppet Lnet/minecraft/block/entity/CreakingHeartBlockEntity;isPuppet(Lnet/minecraft/entity/mob/CreakingEntity;)Z
      intermediary method_64803 Lnet/minecraft/class_10323;method_64803(Lnet/minecraft/class_10275;)Z
      official b Ldup;b(Lcnd;)Z
    • getComparatorOutput

      public int getComparatorOutput()
      Mappings:
      Namespace Name Mixin selector
      named getComparatorOutput Lnet/minecraft/block/entity/CreakingHeartBlockEntity;getComparatorOutput()I
      intermediary method_65010 Lnet/minecraft/class_10323;method_65010()I
      official d Ldup;d()I
    • calcComparatorOutput

      public int calcComparatorOutput()
      Mappings:
      Namespace Name Mixin selector
      named calcComparatorOutput Lnet/minecraft/block/entity/CreakingHeartBlockEntity;calcComparatorOutput()I
      intermediary method_65011 Lnet/minecraft/class_10323;method_65011()I
      official f Ldup;f()I
    • 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 Ldua;a(Ltq;Ljt$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 Ldua;b(Ltq;Ljt$a;)V