Interface Leashable

All Known Implementing Classes:
AbstractDonkeyEntity, AbstractHorseEntity, AbstractPiglinEntity, AbstractSkeletonEntity, AllayEntity, AmbientEntity, AnimalEntity, ArmadilloEntity, AxolotlEntity, BatEntity, BeeEntity, BlazeEntity, BoatEntity, BoggedEntity, BreezeEntity, CamelEntity, CatEntity, CaveSpiderEntity, ChestBoatEntity, ChickenEntity, CodEntity, CowEntity, CreeperEntity, DolphinEntity, DonkeyEntity, DrownedEntity, ElderGuardianEntity, EnderDragonEntity, EndermanEntity, EndermiteEntity, EvokerEntity, FishEntity, FlyingEntity, FoxEntity, FrogEntity, GhastEntity, GiantEntity, GlowSquidEntity, GoatEntity, GolemEntity, GuardianEntity, 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, 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, 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 btk
  • 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 b_ Lbtk;b_: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 q_ Lbtk;q_: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 r_ Lbtk;r_:D
  • 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 X_ Lbtk;X_()Lbtk$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 Lbtk;a(Lbtk$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 N_ Lbtk;N_()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 O_ Lbtk;O_()Z
    • canLeashAttachTo

      default boolean canLeashAttachTo()
      Mappings:
      Namespace Name Mixin selector
      named canLeashAttachTo Lnet/minecraft/entity/Leashable;canLeashAttachTo()Z
      intermediary method_60969 Lnet/minecraft/class_9817;method_60969()Z
      official q Lbtk;q()Z
    • 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 y Lbtk;y()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 h_ Lbtk;h_(I)V
    • readLeashDataFromNbt

      @Nullable default @Nullable Leashable.LeashData readLeashDataFromNbt(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      named readLeashDataFromNbt Lnet/minecraft/entity/Leashable;readLeashDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/entity/Leashable$LeashData;
      intermediary method_60967 Lnet/minecraft/class_9817;method_60967(Lnet/minecraft/class_2487;)Lnet/minecraft/class_9817$class_9818;
      official c Lbtk;c(Lub;)Lbtk$a;
    • 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 Lbtk;a(Lub;Lbtk$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 a Lbtk;a(Lbsr;Lbtk$a;)V
    • detachLeash

      default void detachLeash(boolean sendPacket, boolean dropItem)
      Mappings:
      Namespace Name Mixin selector
      named detachLeash Lnet/minecraft/entity/Leashable;detachLeash(ZZ)V
      intermediary method_5932 Lnet/minecraft/class_9817;method_5932(ZZ)V
      official a Lbtk;a(ZZ)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 Lbtk;a(Lbsr;ZZ)V
    • tickLeash

      static <E extends Entity & Leashable> void tickLeash(E entity)
      Mappings:
      Namespace Name Mixin selector
      named tickLeash Lnet/minecraft/entity/Leashable;tickLeash(Lnet/minecraft/entity/Entity;)V
      intermediary method_60965 Lnet/minecraft/class_9817;method_60965(Lnet/minecraft/class_1297;)V
      official b_ Lbtk;b_(Lbsr;)V
    • beforeLeashTick

      default boolean beforeLeashTick(Entity leashHolder, float distance)
      Called before the default leash-ticking logic. Subclasses can override this to add their own logic to it.

      Returns whether the default logic should run after this..

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named beforeLeashTick Lnet/minecraft/entity/Leashable;beforeLeashTick(Lnet/minecraft/entity/Entity;F)Z
      intermediary method_60956 Lnet/minecraft/class_9817;method_60956(Lnet/minecraft/class_1297;F)Z
      official a Lbtk;a(Lbsr;F)Z
    • detachLeash

      default void detachLeash()
      Mappings:
      Namespace Name Mixin selector
      named detachLeash Lnet/minecraft/entity/Leashable;detachLeash()V
      intermediary method_60970 Lnet/minecraft/class_9817;method_60970()V
      official z Lbtk;z()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 b Lbtk;b(Lbsr;)V
    • applyLeashElasticity

      default void applyLeashElasticity(Entity leashHolder, float distance)
      Mappings:
      Namespace Name Mixin selector
      named applyLeashElasticity Lnet/minecraft/entity/Leashable;applyLeashElasticity(Lnet/minecraft/entity/Entity;F)V
      intermediary method_61162 Lnet/minecraft/class_9817;method_61162(Lnet/minecraft/class_1297;F)V
      official b Lbtk;b(Lbsr;F)V
    • applyLeashElasticity

      private static <E extends Entity & Leashable> void applyLeashElasticity(E entity, Entity leashHolder, float distance)
      Mappings:
      Namespace Name Mixin selector
      named applyLeashElasticity Lnet/minecraft/entity/Leashable;applyLeashElasticity(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity;F)V
      intermediary method_61161 Lnet/minecraft/class_9817;method_61161(Lnet/minecraft/class_1297;Lnet/minecraft/class_1297;F)V
      official a Lbtk;a(Lbsr;Lbsr;F)V
    • 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 b Lbtk;b(Lbsr;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 Lbtk;a(Lbsr;Lbsr;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 A Lbtk;A()Lbsr;
    • 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 c Lbtk;c(Lbsr;)Lbsr;