Interface Leashable

All Known Implementing Classes:
AbstractBoatEntity, AbstractChestBoatEntity, AbstractCowEntity, AbstractDonkeyEntity, AbstractHorseEntity, AbstractPiglinEntity, AbstractSkeletonEntity, AllayEntity, AmbientEntity, AnimalEntity, ArmadilloEntity, AxolotlEntity, BatEntity, BeeEntity, BlazeEntity, BoatEntity, BoggedEntity, BreezeEntity, CamelEntity, CatEntity, CaveSpiderEntity, ChestBoatEntity, ChestRaftEntity, ChickenEntity, CodEntity, CowEntity, CreakingEntity, CreeperEntity, DolphinEntity, DonkeyEntity, DrownedEntity, ElderGuardianEntity, EnderDragonEntity, EndermanEntity, EndermiteEntity, EvokerEntity, FishEntity, FoxEntity, FrogEntity, GhastEntity, GiantEntity, GlowSquidEntity, GoatEntity, GolemEntity, GuardianEntity, HappyGhastEntity, HoglinEntity, HorseEntity, HostileEntity, HuskEntity, IllagerEntity, IllusionerEntity, IronGolemEntity, LlamaEntity, MagmaCubeEntity, MerchantEntity, MobEntity, MooshroomEntity, MuleEntity, OcelotEntity, PandaEntity, ParrotEntity, PassiveEntity, PathAwareEntity, PatrolEntity, PhantomEntity, PigEntity, PiglinBruteEntity, PiglinEntity, PillagerEntity, PolarBearEntity, PufferfishEntity, RabbitEntity, RaftEntity, RaiderEntity, RavagerEntity, SalmonEntity, SchoolingFishEntity, SheepEntity, ShulkerEntity, SilverfishEntity, SkeletonEntity, SkeletonHorseEntity, SlimeEntity, SnifferEntity, SnowGolemEntity, SpellcastingIllagerEntity, SpiderEntity, SquidEntity, StrayEntity, StriderEntity, TadpoleEntity, TameableEntity, TameableShoulderEntity, TraderLlamaEntity, TropicalFishEntity, TurtleEntity, VexEntity, VillagerEntity, VindicatorEntity, WanderingTraderEntity, WardenEntity, WaterAnimalEntity, WaterCreatureEntity, WitchEntity, WitherEntity, WitherSkeletonEntity, WolfEntity, ZoglinEntity, ZombieEntity, ZombieHorseEntity, ZombieVillagerEntity, ZombifiedPiglinEntity

public interface Leashable
Mappings:
Namespace Name
named net/minecraft/entity/Leashable
intermediary net/minecraft/class_9817
official byl
  • Field Details

    • LEASH_NBT_KEY

      static final String LEASH_NBT_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named LEASH_NBT_KEY Lnet/minecraft/entity/Leashable;LEASH_NBT_KEY:Ljava/lang/String;
      intermediary field_52216 Lnet/minecraft/class_9817;field_52216:Ljava/lang/String;
      official x_ Lbyl;x_:Ljava/lang/String;
    • MAX_LEASH_LENGTH

      static final double MAX_LEASH_LENGTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MAX_LEASH_LENGTH Lnet/minecraft/entity/Leashable;MAX_LEASH_LENGTH:D
      intermediary field_52314 Lnet/minecraft/class_9817;field_52314:D
      official h Lbyl;h:D
    • SHORT_LEASH_LENGTH

      static final double SHORT_LEASH_LENGTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named SHORT_LEASH_LENGTH Lnet/minecraft/entity/Leashable;SHORT_LEASH_LENGTH:D
      intermediary field_52315 Lnet/minecraft/class_9817;field_52315:D
      official i Lbyl;i:D
    • field_60003

      static final double field_60003
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_60003 Lnet/minecraft/entity/Leashable;field_60003:D
      intermediary field_60003 Lnet/minecraft/class_9817;field_60003:D
      official j Lbyl;j:D
    • field_60004

      static final Vec3d field_60004
      Mappings:
      Namespace Name Mixin selector
      named field_60004 Lnet/minecraft/entity/Leashable;field_60004:Lnet/minecraft/util/math/Vec3d;
      intermediary field_60004 Lnet/minecraft/class_9817;field_60004:Lnet/minecraft/class_243;
      official k Lbyl;k:Lfgo;
    • field_59997

      static final float field_59997
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_59997 Lnet/minecraft/entity/Leashable;field_59997:F
      intermediary field_59997 Lnet/minecraft/class_9817;field_59997:F
      official d_ Lbyl;d_:F
    • field_59998

      static final double field_59998
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_59998 Lnet/minecraft/entity/Leashable;field_59998:D
      intermediary field_59998 Lnet/minecraft/class_9817;field_59998:D
      official e_ Lbyl;e_:D
    • field_59999

      static final double field_59999
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_59999 Lnet/minecraft/entity/Leashable;field_59999:D
      intermediary field_59999 Lnet/minecraft/class_9817;field_59999:D
      official f_ Lbyl;f_:D
    • field_60000

      static final List<Vec3d> field_60000
      Mappings:
      Namespace Name Mixin selector
      named field_60000 Lnet/minecraft/entity/Leashable;field_60000:Ljava/util/List;
      intermediary field_60000 Lnet/minecraft/class_9817;field_60000:Ljava/util/List;
      official g_ Lbyl;g_:Ljava/util/List;
    • field_60001

      static final List<Vec3d> field_60001
      Mappings:
      Namespace Name Mixin selector
      named field_60001 Lnet/minecraft/entity/Leashable;field_60001:Ljava/util/List;
      intermediary field_60001 Lnet/minecraft/class_9817;field_60001:Ljava/util/List;
      official h_ Lbyl;h_:Ljava/util/List;
    • field_60002

      static final List<Vec3d> field_60002
      Mappings:
      Namespace Name Mixin selector
      named field_60002 Lnet/minecraft/entity/Leashable;field_60002:Ljava/util/List;
      intermediary field_60002 Lnet/minecraft/class_9817;field_60002:Ljava/util/List;
      official i_ Lbyl;i_:Ljava/util/List;
  • Method Details

    • getLeashData

      Mappings:
      Namespace Name Mixin selector
      named getLeashData Lnet/minecraft/entity/Leashable;getLeashData()Lnet/minecraft/entity/Leashable$LeashData;
      intermediary method_60955 Lnet/minecraft/class_9817;method_60955()Lnet/minecraft/class_9817$class_9818;
      official R_ Lbyl;R_()Lbyl$a;
    • setLeashData

      void setLeashData(@Nullable @Nullable Leashable.LeashData leashData)
      Mappings:
      Namespace Name Mixin selector
      named setLeashData Lnet/minecraft/entity/Leashable;setLeashData(Lnet/minecraft/entity/Leashable$LeashData;)V
      intermediary method_60960 Lnet/minecraft/class_9817;method_60960(Lnet/minecraft/class_9817$class_9818;)V
      official a Lbyl;a(Lbyl$a;)V
    • isLeashed

      default boolean isLeashed()
      Mappings:
      Namespace Name Mixin selector
      named isLeashed Lnet/minecraft/entity/Leashable;isLeashed()Z
      intermediary method_60953 Lnet/minecraft/class_9817;method_60953()Z
      official P_ Lbyl;P_()Z
    • mightBeLeashed

      default boolean mightBeLeashed()
      Mappings:
      Namespace Name Mixin selector
      named mightBeLeashed Lnet/minecraft/entity/Leashable;mightBeLeashed()Z
      intermediary method_60954 Lnet/minecraft/class_9817;method_60954()Z
      official u Lbyl;u()Z
    • method_71002

      default boolean method_71002(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named method_71002 Lnet/minecraft/entity/Leashable;method_71002(Lnet/minecraft/entity/Entity;)Z
      intermediary method_71002 Lnet/minecraft/class_9817;method_71002(Lnet/minecraft/class_1297;)Z
      official b_ Lbyl;b_(Lbxn;)Z
    • method_71001

      default double method_71001(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named method_71001 Lnet/minecraft/entity/Leashable;method_71001(Lnet/minecraft/entity/Entity;)D
      intermediary method_71001 Lnet/minecraft/class_9817;method_71001(Lnet/minecraft/class_1297;)D
      official b Lbyl;b(Lbxn;)D
    • canBeLeashed

      default boolean canBeLeashed()
      Mappings:
      Namespace Name Mixin selector
      named canBeLeashed Lnet/minecraft/entity/Leashable;canBeLeashed()Z
      intermediary method_5931 Lnet/minecraft/class_9817;method_5931()Z
      official v Lbyl;v()Z
    • setUnresolvedLeashHolderId

      default void setUnresolvedLeashHolderId(int unresolvedLeashHolderId)
      Mappings:
      Namespace Name Mixin selector
      named setUnresolvedLeashHolderId Lnet/minecraft/entity/Leashable;setUnresolvedLeashHolderId(I)V
      intermediary method_60968 Lnet/minecraft/class_9817;method_60968(I)V
      official e_ Lbyl;e_(I)V
    • readLeashDataFromNbt

      default void readLeashDataFromNbt(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      named readLeashDataFromNbt Lnet/minecraft/entity/Leashable;readLeashDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
      intermediary method_60967 Lnet/minecraft/class_9817;method_60967(Lnet/minecraft/class_2487;)V
      official c Lbyl;c(Luc;)V
    • writeLeashDataToNbt

      default void writeLeashDataToNbt(NbtCompound nbt, @Nullable @Nullable Leashable.LeashData leashData)
      Mappings:
      Namespace Name Mixin selector
      named writeLeashDataToNbt Lnet/minecraft/entity/Leashable;writeLeashDataToNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/entity/Leashable$LeashData;)V
      intermediary method_60962 Lnet/minecraft/class_9817;method_60962(Lnet/minecraft/class_2487;Lnet/minecraft/class_9817$class_9818;)V
      official a Lbyl;a(Luc;Lbyl$a;)V
    • resolveLeashData

      private static <E extends Entity & Leashable> void resolveLeashData(E entity, Leashable.LeashData leashData)
      Mappings:
      Namespace Name Mixin selector
      named resolveLeashData Lnet/minecraft/entity/Leashable;resolveLeashData(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Leashable$LeashData;)V
      intermediary method_60958 Lnet/minecraft/class_9817;method_60958(Lnet/minecraft/class_1297;Lnet/minecraft/class_9817$class_9818;)V
      official b Lbyl;b(Lbxn;Lbyl$a;)V
    • detachLeash

      default void detachLeash()
      Mappings:
      Namespace Name Mixin selector
      named detachLeash Lnet/minecraft/entity/Leashable;detachLeash()V
      intermediary method_5932 Lnet/minecraft/class_9817;method_5932()V
      official Q_ Lbyl;Q_()V
    • detachLeashWithoutDrop

      default void detachLeashWithoutDrop()
      Mappings:
      Namespace Name Mixin selector
      named detachLeashWithoutDrop Lnet/minecraft/entity/Leashable;detachLeashWithoutDrop()V
      intermediary method_65894 Lnet/minecraft/class_9817;method_65894()V
      official x Lbyl;x()V
    • onLeashRemoved

      default void onLeashRemoved()
      Mappings:
      Namespace Name Mixin selector
      named onLeashRemoved Lnet/minecraft/entity/Leashable;onLeashRemoved()V
      intermediary method_65895 Lnet/minecraft/class_9817;method_65895()V
      official y Lbyl;y()V
    • detachLeash

      private static <E extends Entity & Leashable> void detachLeash(E entity, boolean sendPacket, boolean dropItem)
      Mappings:
      Namespace Name Mixin selector
      named detachLeash Lnet/minecraft/entity/Leashable;detachLeash(Lnet/minecraft/entity/Entity;ZZ)V
      intermediary method_60959 Lnet/minecraft/class_9817;method_60959(Lnet/minecraft/class_1297;ZZ)V
      official a Lbyl;a(Lbxn;ZZ)V
    • tickLeash

      static <E extends Entity & Leashable> void tickLeash(ServerWorld world, E entity)
      Mappings:
      Namespace Name Mixin selector
      named tickLeash Lnet/minecraft/entity/Leashable;tickLeash(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/Entity;)V
      intermediary method_60965 Lnet/minecraft/class_9817;method_60965(Lnet/minecraft/class_3218;Lnet/minecraft/class_1297;)V
      official a_ Lbyl;a_(Lasg;Lbxn;)V
    • method_71006

      default void method_71006()
      Mappings:
      Namespace Name Mixin selector
      named method_71006 Lnet/minecraft/entity/Leashable;method_71006()V
      intermediary method_71006 Lnet/minecraft/class_9817;method_71006()V
      official z Lbyl;z()V
    • method_70989

      default double method_70989()
      Mappings:
      Namespace Name Mixin selector
      named method_70989 Lnet/minecraft/entity/Leashable;method_70989()D
      intermediary method_70989 Lnet/minecraft/class_9817;method_70989()D
      official A Lbyl;A()D
    • method_70990

      default double method_70990()
      Mappings:
      Namespace Name Mixin selector
      named method_70990 Lnet/minecraft/entity/Leashable;method_70990()D
      intermediary method_70990 Lnet/minecraft/class_9817;method_70990()D
      official B Lbyl;B()D
    • method_71003

      static <E extends Entity & Leashable> float method_71003(E e)
      Mappings:
      Namespace Name Mixin selector
      named method_71003 Lnet/minecraft/entity/Leashable;method_71003(Lnet/minecraft/entity/Entity;)F
      intermediary method_71003 Lnet/minecraft/class_9817;method_71003(Lnet/minecraft/class_1297;)F
      official c Lbyl;c(Lbxn;)F
    • method_71005

      default void method_71005(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named method_71005 Lnet/minecraft/entity/Leashable;method_71005(Lnet/minecraft/entity/Entity;)V
      intermediary method_71005 Lnet/minecraft/class_9817;method_71005(Lnet/minecraft/class_1297;)V
      official d Lbyl;d(Lbxn;)V
    • breakLongLeash

      default void breakLongLeash()
      Mappings:
      Namespace Name Mixin selector
      named breakLongLeash Lnet/minecraft/entity/Leashable;breakLongLeash()V
      intermediary method_60970 Lnet/minecraft/class_9817;method_60970()V
      official C Lbyl;C()V
    • onShortLeashTick

      default void onShortLeashTick(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named onShortLeashTick Lnet/minecraft/entity/Leashable;onShortLeashTick(Lnet/minecraft/entity/Entity;)V
      intermediary method_60963 Lnet/minecraft/class_9817;method_60963(Lnet/minecraft/class_1297;)V
      official e Lbyl;e(Lbxn;)V
    • method_70995

      default boolean method_70995(Entity entity, Leashable.LeashData leashData)
      Mappings:
      Namespace Name Mixin selector
      named method_70995 Lnet/minecraft/entity/Leashable;method_70995(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Leashable$LeashData;)Z
      intermediary method_70995 Lnet/minecraft/class_9817;method_70995(Lnet/minecraft/class_1297;Lnet/minecraft/class_9817$class_9818;)Z
      official a Lbyl;a(Lbxn;Lbyl$a;)Z
    • method_70994

      private static <E extends Entity & Leashable> List<Leashable.class_11265> method_70994(E e, Entity entity, List<Vec3d> list, List<Vec3d> list2)
      Mappings:
      Namespace Name Mixin selector
      named method_70994 Lnet/minecraft/entity/Leashable;method_70994(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity;Ljava/util/List;Ljava/util/List;)Ljava/util/List;
      intermediary method_70994 Lnet/minecraft/class_9817;method_70994(Lnet/minecraft/class_1297;Lnet/minecraft/class_1297;Ljava/util/List;Ljava/util/List;)Ljava/util/List;
      official a Lbyl;a(Lbxn;Lbxn;Ljava/util/List;Ljava/util/List;)Ljava/util/List;
    • method_70999

      private static Optional<Leashable.class_11265> method_70999(Vec3d vec3d, Vec3d vec3d2, double double2, Vec3d vec3d3, Vec3d vec3d4)
      Mappings:
      Namespace Name Mixin selector
      named method_70999 Lnet/minecraft/entity/Leashable;method_70999(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;DLnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)Ljava/util/Optional;
      intermediary method_70999 Lnet/minecraft/class_9817;method_70999(Lnet/minecraft/class_243;Lnet/minecraft/class_243;DLnet/minecraft/class_243;Lnet/minecraft/class_243;)Ljava/util/Optional;
      official a Lbyl;a(Lfgo;Lfgo;DLfgo;Lfgo;)Ljava/util/Optional;
    • method_70991

      default boolean method_70991()
      Mappings:
      Namespace Name Mixin selector
      named method_70991 Lnet/minecraft/entity/Leashable;method_70991()Z
      intermediary method_70991 Lnet/minecraft/class_9817;method_70991()Z
      official D Lbyl;D()Z
    • method_70992

      default Vec3d[] method_70992()
      Mappings:
      Namespace Name Mixin selector
      named method_70992 Lnet/minecraft/entity/Leashable;method_70992()[Lnet/minecraft/util/math/Vec3d;
      intermediary method_70992 Lnet/minecraft/class_9817;method_70992()[Lnet/minecraft/class_243;
      official E Lbyl;E()[Lfgo;
    • method_70993

      static Vec3d[] method_70993(Entity entity, double double2, double double3, double double4, double double5)
      Mappings:
      Namespace Name Mixin selector
      named method_70993 Lnet/minecraft/entity/Leashable;method_70993(Lnet/minecraft/entity/Entity;DDDD)[Lnet/minecraft/util/math/Vec3d;
      intermediary method_70993 Lnet/minecraft/class_9817;method_70993(Lnet/minecraft/class_1297;DDDD)[Lnet/minecraft/class_243;
      official a Lbyl;a(Lbxn;DDDD)[Lfgo;
    • getLeashOffset

      default Vec3d getLeashOffset(float float2)
      Mappings:
      Namespace Name Mixin selector
      named getLeashOffset Lnet/minecraft/entity/Leashable;getLeashOffset(F)Lnet/minecraft/util/math/Vec3d;
      intermediary method_45321 Lnet/minecraft/class_9817;method_45321(F)Lnet/minecraft/class_243;
      official a_ Lbyl;a_(F)Lfgo;
    • getLeashOffset

      default Vec3d getLeashOffset()
      Mappings:
      Namespace Name Mixin selector
      named getLeashOffset Lnet/minecraft/entity/Leashable;getLeashOffset()Lnet/minecraft/util/math/Vec3d;
      intermediary method_29919 Lnet/minecraft/class_9817;method_29919()Lnet/minecraft/class_243;
      official F Lbyl;F()Lfgo;
    • attachLeash

      default void attachLeash(Entity leashHolder, boolean sendPacket)
      Mappings:
      Namespace Name Mixin selector
      named attachLeash Lnet/minecraft/entity/Leashable;attachLeash(Lnet/minecraft/entity/Entity;Z)V
      intermediary method_60964 Lnet/minecraft/class_9817;method_60964(Lnet/minecraft/class_1297;Z)V
      official a_ Lbyl;a_(Lbxn;Z)V
    • attachLeash

      private static <E extends Entity & Leashable> void attachLeash(E entity, Entity leashHolder, boolean sendPacket)
      Mappings:
      Namespace Name Mixin selector
      named attachLeash Lnet/minecraft/entity/Leashable;attachLeash(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity;Z)V
      intermediary method_60957 Lnet/minecraft/class_9817;method_60957(Lnet/minecraft/class_1297;Lnet/minecraft/class_1297;Z)V
      official a Lbyl;a(Lbxn;Lbxn;Z)V
    • getLeashHolder

      @Nullable default @Nullable Entity getLeashHolder()
      Mappings:
      Namespace Name Mixin selector
      named getLeashHolder Lnet/minecraft/entity/Leashable;getLeashHolder()Lnet/minecraft/entity/Entity;
      intermediary method_60952 Lnet/minecraft/class_9817;method_60952()Lnet/minecraft/class_1297;
      official ah_ Lbyl;ah_()Lbxn;
    • getLeashHolder

      @Nullable private static <E extends Entity & Leashable> @Nullable Entity getLeashHolder(E entity)
      Mappings:
      Namespace Name Mixin selector
      named getLeashHolder Lnet/minecraft/entity/Leashable;getLeashHolder(Lnet/minecraft/entity/Entity;)Lnet/minecraft/entity/Entity;
      intermediary method_60966 Lnet/minecraft/class_9817;method_60966(Lnet/minecraft/class_1297;)Lnet/minecraft/class_1297;
      official g Lbyl;g(Lbxn;)Lbxn;
    • method_71004

      static List<Leashable> method_71004(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named method_71004 Lnet/minecraft/entity/Leashable;method_71004(Lnet/minecraft/entity/Entity;)Ljava/util/List;
      intermediary method_71004 Lnet/minecraft/class_9817;method_71004(Lnet/minecraft/class_1297;)Ljava/util/List;
      official c_ Lbyl;c_(Lbxn;)Ljava/util/List;
    • method_70997

      static List<Leashable> method_70997(Entity entity, Predicate<Leashable> predicate)
      Mappings:
      Namespace Name Mixin selector
      named method_70997 Lnet/minecraft/entity/Leashable;method_70997(Lnet/minecraft/entity/Entity;Ljava/util/function/Predicate;)Ljava/util/List;
      intermediary method_70997 Lnet/minecraft/class_9817;method_70997(Lnet/minecraft/class_1297;Ljava/util/function/Predicate;)Ljava/util/List;
      official a Lbyl;a(Lbxn;Ljava/util/function/Predicate;)Ljava/util/List;
    • method_70998

      static List<Leashable> method_70998(World world, Vec3d vec3d, Predicate<Leashable> predicate)
      Mappings:
      Namespace Name Mixin selector
      named method_70998 Lnet/minecraft/entity/Leashable;method_70998(Lnet/minecraft/world/World;Lnet/minecraft/util/math/Vec3d;Ljava/util/function/Predicate;)Ljava/util/List;
      intermediary method_70998 Lnet/minecraft/class_9817;method_70998(Lnet/minecraft/class_1937;Lnet/minecraft/class_243;Ljava/util/function/Predicate;)Ljava/util/List;
      official a Lbyl;a(Ldkv;Lfgo;Ljava/util/function/Predicate;)Ljava/util/List;