Class LeashKnotEntity

All Implemented Interfaces:
EntityLike, CommandOutput, Nameable

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

    • LeashKnotEntity

      public LeashKnotEntity​(EntityType<? extends LeashKnotEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laqv;<init>(Laqz;Lbtv;)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> Lbef;<init>(Lbtv;Lfx;)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 g Lbed;g()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 Lbed;a(Lgc;)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 i Lbed;i()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 k Lbed;k()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 Laqv;a(Lart;Laqw;)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

      @Environment(CLIENT) public boolean shouldRender​(double distance)
      Overrides:
      shouldRender in class Entity
      Mappings:
      Namespace Name Mixin selector
      official a Laqv;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 Entity entity)
      Specified by:
      onBreak in class AbstractDecorationEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbed;a(Laqv;)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
    • writeCustomDataToTag

      public void writeCustomDataToTag​(CompoundTag tag)
      Overrides:
      writeCustomDataToTag in class AbstractDecorationEntity
      Mappings:
      Namespace Name Mixin selector
      official b Laqv;b(Lmq;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
      named writeCustomDataToTag Lnet/minecraft/entity/Entity;writeCustomDataToTag(Lnet/minecraft/nbt/CompoundTag;)V
    • readCustomDataFromTag

      public void readCustomDataFromTag​(CompoundTag tag)
      Overrides:
      readCustomDataFromTag in class AbstractDecorationEntity
      Mappings:
      Namespace Name Mixin selector
      official a Laqv;a(Lmq;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
      named readCustomDataFromTag Lnet/minecraft/entity/Entity;readCustomDataFromTag(Lnet/minecraft/nbt/CompoundTag;)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 Laqv;a(Lbhl;Lapp;)Lapq;
      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 h Lbed;h()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 a Lbef;a(Lbtv;Lfx;)Lbef;
      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 m Lbed;m()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 P Laqv;P()Lpa;
      intermediary method_18002 Lnet/minecraft/class_1297;method_18002()Lnet/minecraft/class_2596;
      named createSpawnPacket Lnet/minecraft/entity/Entity;createSpawnPacket()Lnet/minecraft/network/Packet;
    • method_30951

      @Environment(CLIENT) public Vec3d method_30951​(float float2)
      Overrides:
      method_30951 in class Entity
      Mappings:
      Namespace Name Mixin selector
      official n Laqv;n(F)Ldiu;
      intermediary method_30951 Lnet/minecraft/class_1297;method_30951(F)Lnet/minecraft/class_243;
      named method_30951 Lnet/minecraft/entity/Entity;method_30951(F)Lnet/minecraft/util/math/Vec3d;
    • getPickBlockStack

      @Environment(CLIENT) public ItemStack getPickBlockStack()
      Overrides:
      getPickBlockStack in class Entity
      Mappings:
      Namespace Name Mixin selector
      official cY Laqv;cY()Lbnv;
      intermediary method_31480 Lnet/minecraft/class_1297;method_31480()Lnet/minecraft/class_1799;
      named getPickBlockStack Lnet/minecraft/entity/Entity;getPickBlockStack()Lnet/minecraft/item/ItemStack;