Class LeashKnotEntity

All Implemented Interfaces:
ComponentsAccess, DataTracked, ScoreHolder, Nameable, EntityLike, UniquelyIdentifiable

public class LeashKnotEntity extends BlockAttachedEntity
Mappings:
Namespace Name
named net/minecraft/entity/decoration/LeashKnotEntity
intermediary net/minecraft/class_1532
official cqt
  • Field Details

    • field_30455

      public static final double field_30455
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_30455 Lnet/minecraft/entity/decoration/LeashKnotEntity;field_30455:D
      intermediary field_30455 Lnet/minecraft/class_1532;field_30455:D
      official b Lcqt;b:D
  • Constructor Details

    • LeashKnotEntity

      public LeashKnotEntity(EntityType<? extends LeashKnotEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
      intermediary <init> Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
      official <init> Lbzm;<init>(Lbzv;Ldmu;)V
    • LeashKnotEntity

      public LeashKnotEntity(World world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/decoration/LeashKnotEntity;<init>(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
      intermediary <init> Lnet/minecraft/class_1532;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V
      official <init> Lcqt;<init>(Ldmu;Ljb;)V
  • Method Details

    • initDataTracker

      protected void initDataTracker(DataTracker.Builder builder)
      Initializes data tracker.
      Specified by:
      initDataTracker in class Entity
      API Note:
      Subclasses should override this and add to the builder any data that needs to be tracked.
      Mappings:
      Namespace Name Mixin selector
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)V
      official a Lbzm;a(Lall$a;)V
    • updateAttachmentPosition

      protected void updateAttachmentPosition()
      Specified by:
      updateAttachmentPosition in class BlockAttachedEntity
      Mappings:
      Namespace Name Mixin selector
      named updateAttachmentPosition Lnet/minecraft/entity/decoration/BlockAttachedEntity;updateAttachmentPosition()V
      intermediary method_6895 Lnet/minecraft/class_9691;method_6895()V
      official e Lcqp;e()V
    • shouldRender

      public boolean shouldRender(double distance)
      Overrides:
      shouldRender in class Entity
      Mappings:
      Namespace Name Mixin selector
      named shouldRender Lnet/minecraft/entity/Entity;shouldRender(D)Z
      intermediary method_5640 Lnet/minecraft/class_1297;method_5640(D)Z
      official a Lbzm;a(D)Z
    • onBreak

      public void onBreak(ServerWorld world, @Nullable @Nullable Entity breaker)
      Specified by:
      onBreak in class BlockAttachedEntity
      Mappings:
      Namespace Name Mixin selector
      named onBreak Lnet/minecraft/entity/decoration/BlockAttachedEntity;onBreak(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/Entity;)V
      intermediary method_6889 Lnet/minecraft/class_9691;method_6889(Lnet/minecraft/class_3218;Lnet/minecraft/class_1297;)V
      official a Lcqp;a(Laub;Lbzm;)V
    • writeCustomData

      protected void writeCustomData(WriteView view)
      Overrides:
      writeCustomData in class BlockAttachedEntity
      Mappings:
      Namespace Name Mixin selector
      named writeCustomData Lnet/minecraft/entity/Entity;writeCustomData(Lnet/minecraft/storage/WriteView;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_11372;)V
      official a Lbzm;a(Lfdc;)V
    • readCustomData

      protected void readCustomData(ReadView view)
      Overrides:
      readCustomData in class BlockAttachedEntity
      Mappings:
      Namespace Name Mixin selector
      named readCustomData Lnet/minecraft/entity/Entity;readCustomData(Lnet/minecraft/storage/ReadView;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_11368;)V
      official a Lbzm;a(Lfda;)V
    • interact

      public ActionResult interact(PlayerEntity player, Hand hand)
      Called when a player interacts with this entity.
      Overrides:
      interact in class Entity
      Parameters:
      player - the player
      hand - the hand the player used to interact with this entity
      Mappings:
      Namespace Name Mixin selector
      named interact Lnet/minecraft/entity/Entity;interact(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
      intermediary method_5688 Lnet/minecraft/class_1297;method_5688(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
      official a Lbzm;a(Lcut;Lbxi;)Lbxj;
    • onHeldLeashUpdate

      public void onHeldLeashUpdate(Leashable heldLeashable)
      Overrides:
      onHeldLeashUpdate in class Entity
      Mappings:
      Namespace Name Mixin selector
      named onHeldLeashUpdate Lnet/minecraft/entity/Entity;onHeldLeashUpdate(Lnet/minecraft/entity/Leashable;)V
      intermediary method_70982 Lnet/minecraft/class_1297;method_70982(Lnet/minecraft/class_9817;)V
      official b Lbzm;b(Lcak;)V
    • canStayAttached

      public boolean canStayAttached()
      Specified by:
      canStayAttached in class BlockAttachedEntity
      Mappings:
      Namespace Name Mixin selector
      named canStayAttached Lnet/minecraft/entity/decoration/BlockAttachedEntity;canStayAttached()Z
      intermediary method_6888 Lnet/minecraft/class_9691;method_6888()Z
      official f Lcqp;f()Z
    • getOrCreate

      public static LeashKnotEntity getOrCreate(World world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      named getOrCreate Lnet/minecraft/entity/decoration/LeashKnotEntity;getOrCreate(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/entity/decoration/LeashKnotEntity;
      intermediary method_6932 Lnet/minecraft/class_1532;method_6932(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Lnet/minecraft/class_1532;
      official b Lcqt;b(Ldmu;Ljb;)Lcqt;
    • onPlace

      public void onPlace()
      Mappings:
      Namespace Name Mixin selector
      named onPlace Lnet/minecraft/entity/decoration/LeashKnotEntity;onPlace()V
      intermediary method_59944 Lnet/minecraft/class_1532;method_59944()V
      official l Lcqt;l()V
    • createSpawnPacket

      public Packet<ClientPlayPacketListener> createSpawnPacket(EntityTrackerEntry entityTrackerEntry)
      Returns a packet to notify the clients of the entity's spawning.
      Overrides:
      createSpawnPacket in class Entity
      Returns:
      a packet to notify the clients of the entity's spawning
      API Note:
      Subclasses should return new EntitySpawnS2CPacket(this), unless they use a custom spawning packet.
      Mappings:
      Namespace Name Mixin selector
      named createSpawnPacket Lnet/minecraft/entity/Entity;createSpawnPacket(Lnet/minecraft/server/network/EntityTrackerEntry;)Lnet/minecraft/network/packet/Packet;
      intermediary method_18002 Lnet/minecraft/class_1297;method_18002(Lnet/minecraft/class_3231;)Lnet/minecraft/class_2596;
      official a Lbzm;a(Latz;)Lzw;
    • getLeashPos

      public Vec3d getLeashPos(float tickProgress)
      Returns the position of the leash this entity holds.

      This is different from

      invalid reference
      #getLeashOffset
      ; this method is called on the entity that holds the leash.
      Overrides:
      getLeashPos in class Entity
      Returns:
      the position of the leash this entity holds
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named getLeashPos Lnet/minecraft/entity/Entity;getLeashPos(F)Lnet/minecraft/util/math/Vec3d;
      intermediary method_30951 Lnet/minecraft/class_1297;method_30951(F)Lnet/minecraft/class_243;
      official u Lbzm;u(F)Lfis;
    • getPickBlockStack

      public ItemStack getPickBlockStack()
      Returns the stack for creative "pick block" functionality, or null if there is none.

      If the entity has an item representation (such as boats or minecarts), this should be overridden to return a new stack. Note that MobEntity handles the spawn eggs. ItemFrameEntity instead returns the copy of the stack held in the frame.

      Overrides:
      getPickBlockStack in class Entity
      Returns:
      the stack for creative "pick block" functionality, or null if there is none
      Mappings:
      Namespace Name Mixin selector
      named getPickBlockStack Lnet/minecraft/entity/Entity;getPickBlockStack()Lnet/minecraft/item/ItemStack;
      intermediary method_31480 Lnet/minecraft/class_1297;method_31480()Lnet/minecraft/class_1799;
      official dM Lbzm;dM()Ldcv;