Class LeashKnotEntity

All Implemented Interfaces:
CommandOutput, Nameable, EntityLike

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

    • field_30455

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

    • LeashKnotEntity

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

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

    • updateAttachmentPosition

      protected void updateAttachmentPosition()
      Overrides:
      updateAttachmentPosition in class AbstractDecorationEntity
      Mappings:
      Namespace Name Mixin selector
      official q Lblb;q()V
      intermediary method_6895 Lnet/minecraft/class_1530;method_6895()V
      named updateAttachmentPosition Lnet/minecraft/entity/decoration/AbstractDecorationEntity;updateAttachmentPosition()V
    • setFacing

      public void setFacing(Direction facing)
      Overrides:
      setFacing in class AbstractDecorationEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lblb;a(Lgo;)V
      intermediary method_6892 Lnet/minecraft/class_1530;method_6892(Lnet/minecraft/class_2350;)V
      named setFacing Lnet/minecraft/entity/decoration/AbstractDecorationEntity;setFacing(Lnet/minecraft/util/math/Direction;)V
    • getWidthPixels

      public int getWidthPixels()
      Specified by:
      getWidthPixels in class AbstractDecorationEntity
      Mappings:
      Namespace Name Mixin selector
      official s Lblb;s()I
      intermediary method_6897 Lnet/minecraft/class_1530;method_6897()I
      named getWidthPixels Lnet/minecraft/entity/decoration/AbstractDecorationEntity;getWidthPixels()I
    • getHeightPixels

      public int getHeightPixels()
      Specified by:
      getHeightPixels in class AbstractDecorationEntity
      Mappings:
      Namespace Name Mixin selector
      official t Lblb;t()I
      intermediary method_6891 Lnet/minecraft/class_1530;method_6891()I
      named getHeightPixels Lnet/minecraft/entity/decoration/AbstractDecorationEntity;getHeightPixels()I
    • getEyeHeight

      protected float getEyeHeight(EntityPose pose, EntityDimensions dimensions)
      Overrides:
      getEyeHeight in class Entity
      Mappings:
      Namespace Name Mixin selector
      official a Laxk;a(Layk;Laxl;)F
      intermediary method_18378 Lnet/minecraft/class_1297;method_18378(Lnet/minecraft/class_4050;Lnet/minecraft/class_4048;)F
      named getEyeHeight Lnet/minecraft/entity/Entity;getEyeHeight(Lnet/minecraft/entity/EntityPose;Lnet/minecraft/entity/EntityDimensions;)F
    • shouldRender

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

      public void onBreak(@Nullable @Nullable Entity entity)
      Specified by:
      onBreak in class AbstractDecorationEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lblb;a(Laxk;)V
      intermediary method_6889 Lnet/minecraft/class_1530;method_6889(Lnet/minecraft/class_1297;)V
      named onBreak Lnet/minecraft/entity/decoration/AbstractDecorationEntity;onBreak(Lnet/minecraft/entity/Entity;)V
    • writeCustomDataToNbt

      public void writeCustomDataToNbt(NbtCompound nbt)
      Overrides:
      writeCustomDataToNbt in class AbstractDecorationEntity
      Mappings:
      Namespace Name Mixin selector
      official b Laxk;b(Lok;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
      named writeCustomDataToNbt Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • readCustomDataFromNbt

      public void readCustomDataFromNbt(NbtCompound nbt)
      Overrides:
      readCustomDataFromNbt in class AbstractDecorationEntity
      Mappings:
      Namespace Name Mixin selector
      official a Laxk;a(Lok;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
      named readCustomDataFromNbt Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)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
      official a Laxk;a(Lboj;Lawg;)Lawh;
      intermediary method_5688 Lnet/minecraft/class_1297;method_5688(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
      named interact Lnet/minecraft/entity/Entity;interact(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
    • canStayAttached

      public boolean canStayAttached()
      Overrides:
      canStayAttached in class AbstractDecorationEntity
      Mappings:
      Namespace Name Mixin selector
      official r Lblb;r()Z
      intermediary method_6888 Lnet/minecraft/class_1530;method_6888()Z
      named canStayAttached Lnet/minecraft/entity/decoration/AbstractDecorationEntity;canStayAttached()Z
    • getOrCreate

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

      public void onPlace()
      Specified by:
      onPlace in class AbstractDecorationEntity
      Mappings:
      Namespace Name Mixin selector
      official u Lblb;u()V
      intermediary method_6894 Lnet/minecraft/class_1530;method_6894()V
      named onPlace Lnet/minecraft/entity/decoration/AbstractDecorationEntity;onPlace()V
    • createSpawnPacket

      public Packet<?> createSpawnPacket()
      Specified by:
      createSpawnPacket in class Entity
      Mappings:
      Namespace Name Mixin selector
      official S Laxk;S()Lrc;
      intermediary method_18002 Lnet/minecraft/class_1297;method_18002()Lnet/minecraft/class_2596;
      named createSpawnPacket Lnet/minecraft/entity/Entity;createSpawnPacket()Lnet/minecraft/network/Packet;
    • getLeashPos

      public Vec3d getLeashPos(float delta)
      Overrides:
      getLeashPos in class Entity
      Mappings:
      Namespace Name Mixin selector
      official n Laxk;n(F)Ldpo;
      intermediary method_30951 Lnet/minecraft/class_1297;method_30951(F)Lnet/minecraft/class_243;
      named getLeashPos Lnet/minecraft/entity/Entity;getLeashPos(F)Lnet/minecraft/util/math/Vec3d;
    • getPickBlockStack

      public ItemStack getPickBlockStack()
      Overrides:
      getPickBlockStack in class Entity
      Mappings:
      Namespace Name Mixin selector
      official dk Laxk;dk()Lbuw;
      intermediary method_31480 Lnet/minecraft/class_1297;method_31480()Lnet/minecraft/class_1799;
      named getPickBlockStack Lnet/minecraft/entity/Entity;getPickBlockStack()Lnet/minecraft/item/ItemStack;