Interface Leashable

All Known Implementing Classes:
AbstractBoatEntity, AbstractChestBoatEntity, 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, 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, RaftEntity, RaiderEntity, RavagerEntity, SalmonEntity, SchoolingFishEntity, SheepEntity, ShulkerEntity, SilverfishEntity, SkeletonEntity, SkeletonHorseEntity, SlimeEntity, SnifferEntity, SnowGolemEntity, SpellcastingIllagerEntity, SpiderEntity, SquidEntity, StrayEntity, StriderEntity, TadpoleEntity, TameableEntity, TameableShoulderEntity, TraderLlamaEntity, TransientCreakingEntity, 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 bwd
  • 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 o_ Lbwd;o_: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 p_ Lbwd;p_: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 q_ Lbwd;q_: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 T_ Lbwd;T_()Lbwd$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 Lbwd;a(Lbwd$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_ Lbwd;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 q Lbwd;q()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_ Lbwd;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 Lbwd;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 e_ Lbwd;e_(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 Lbwd;c(Lux;)Lbwd$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 Lbwd;a(Lux;Lbwd$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 Lbwd;a(Lbvj;Lbwd$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 Lbwd;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 Lbwd;a(Lbvj;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_ Lbwd;a_(Lash;Lbvj;)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 Lbwd;a(Lbvj;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 Lbwd;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 a Lbwd;a(Lbvj;)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 Lbwd;b(Lbvj;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 Lbwd;a(Lbvj;Lbvj;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 Lbwd;b(Lbvj;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 Lbwd;a(Lbvj;Lbvj;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 Lbwd;A()Lbvj;
    • 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 b Lbwd;b(Lbvj;)Lbvj;