Package net.minecraft.entity
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,WaterAnimalEntity,WaterCreatureEntity,WitchEntity,WitherEntity,WitherSkeletonEntity,WolfEntity,ZoglinEntity,ZombieEntity,ZombieHorseEntity,ZombieVillagerEntity,ZombifiedPiglinEntity
public interface Leashable
- Mappings:
Namespace Name named net/minecraft/entity/Leashableintermediary net/minecraft/class_9817official buy
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionapplyLeashElasticity(E entity, Entity leashHolder, float distance) default voidapplyLeashElasticity(Entity leashHolder, float distance) attachLeash(E entity, Entity leashHolder, boolean sendPacket) default voidattachLeash(Entity leashHolder, boolean sendPacket) default booleanbeforeLeashTick(Entity leashHolder, float distance) Called before the default leash-ticking logic.default booleandefault booleandefault voiddefault voiddetachLeash(boolean sendPacket, boolean dropItem) detachLeash(E entity, boolean sendPacket, boolean dropItem) getLeashHolder(E entity) default booleandefault booleandefault voidonShortLeashTick(Entity entity) default @Nullable Leashable.LeashDataresolveLeashData(E entity, Leashable.LeashData leashData) voidsetLeashData(@Nullable Leashable.LeashData leashData) default voidsetUnresolvedLeashHolderId(int unresolvedLeashHolderId) tickLeash(E entity) default voidwriteLeashDataToNbt(NbtCompound nbt, @Nullable Leashable.LeashData leashData)
-
Field Details
-
LEASH_NBT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named LEASH_NBT_KEYLnet/minecraft/entity/Leashable;LEASH_NBT_KEY:Ljava/lang/String;intermediary field_52216Lnet/minecraft/class_9817;field_52216:Ljava/lang/String;official b_Lbuy;b_:Ljava/lang/String;
-
MAX_LEASH_LENGTH
static final double MAX_LEASH_LENGTH- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_LEASH_LENGTHLnet/minecraft/entity/Leashable;MAX_LEASH_LENGTH:Dintermediary field_52314Lnet/minecraft/class_9817;field_52314:Dofficial r_Lbuy;r_:D
-
SHORT_LEASH_LENGTH
static final double SHORT_LEASH_LENGTH- See Also:
- Mappings:
Namespace Name Mixin selector named SHORT_LEASH_LENGTHLnet/minecraft/entity/Leashable;SHORT_LEASH_LENGTH:Dintermediary field_52315Lnet/minecraft/class_9817;field_52315:Dofficial s_Lbuy;s_:D
-
-
Method Details
-
getLeashData
- Mappings:
Namespace Name Mixin selector named getLeashDataLnet/minecraft/entity/Leashable;getLeashData()Lnet/minecraft/entity/Leashable$LeashData;intermediary method_60955Lnet/minecraft/class_9817;method_60955()Lnet/minecraft/class_9817$class_9818;official Y_Lbuy;Y_()Lbuy$a;
-
setLeashData
- Mappings:
Namespace Name Mixin selector named setLeashDataLnet/minecraft/entity/Leashable;setLeashData(Lnet/minecraft/entity/Leashable$LeashData;)Vintermediary method_60960Lnet/minecraft/class_9817;method_60960(Lnet/minecraft/class_9817$class_9818;)Vofficial aLbuy;a(Lbuy$a;)V
-
isLeashed
default boolean isLeashed()- Mappings:
Namespace Name Mixin selector named isLeashedLnet/minecraft/entity/Leashable;isLeashed()Zintermediary method_60953Lnet/minecraft/class_9817;method_60953()Zofficial M_Lbuy;M_()Z
-
mightBeLeashed
default boolean mightBeLeashed()- Mappings:
Namespace Name Mixin selector named mightBeLeashedLnet/minecraft/entity/Leashable;mightBeLeashed()Zintermediary method_60954Lnet/minecraft/class_9817;method_60954()Zofficial N_Lbuy;N_()Z
-
canLeashAttachTo
default boolean canLeashAttachTo()- Mappings:
Namespace Name Mixin selector named canLeashAttachToLnet/minecraft/entity/Leashable;canLeashAttachTo()Zintermediary method_60969Lnet/minecraft/class_9817;method_60969()Zofficial O_Lbuy;O_()Z
-
canBeLeashed
default boolean canBeLeashed()- Mappings:
Namespace Name Mixin selector named canBeLeashedLnet/minecraft/entity/Leashable;canBeLeashed()Zintermediary method_5931Lnet/minecraft/class_9817;method_5931()Zofficial ALbuy;A()Z
-
setUnresolvedLeashHolderId
default void setUnresolvedLeashHolderId(int unresolvedLeashHolderId) - Mappings:
Namespace Name Mixin selector named setUnresolvedLeashHolderIdLnet/minecraft/entity/Leashable;setUnresolvedLeashHolderId(I)Vintermediary method_60968Lnet/minecraft/class_9817;method_60968(I)Vofficial h_Lbuy;h_(I)V
-
readLeashDataFromNbt
- Mappings:
Namespace Name Mixin selector named readLeashDataFromNbtLnet/minecraft/entity/Leashable;readLeashDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/entity/Leashable$LeashData;intermediary method_60967Lnet/minecraft/class_9817;method_60967(Lnet/minecraft/class_2487;)Lnet/minecraft/class_9817$class_9818;official cLbuy;c(Luk;)Lbuy$a;
-
writeLeashDataToNbt
default void writeLeashDataToNbt(NbtCompound nbt, @Nullable @Nullable Leashable.LeashData leashData) - Mappings:
Namespace Name Mixin selector named writeLeashDataToNbtLnet/minecraft/entity/Leashable;writeLeashDataToNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/entity/Leashable$LeashData;)Vintermediary method_60962Lnet/minecraft/class_9817;method_60962(Lnet/minecraft/class_2487;Lnet/minecraft/class_9817$class_9818;)Vofficial aLbuy;a(Luk;Lbuy$a;)V
-
resolveLeashData
private static <E extends Entity & Leashable> void resolveLeashData(E entity, Leashable.LeashData leashData) - Mappings:
Namespace Name Mixin selector named resolveLeashDataLnet/minecraft/entity/Leashable;resolveLeashData(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Leashable$LeashData;)Vintermediary method_60958Lnet/minecraft/class_9817;method_60958(Lnet/minecraft/class_1297;Lnet/minecraft/class_9817$class_9818;)Vofficial aLbuy;a(Lbue;Lbuy$a;)V
-
detachLeash
default void detachLeash(boolean sendPacket, boolean dropItem) - Mappings:
Namespace Name Mixin selector named detachLeashLnet/minecraft/entity/Leashable;detachLeash(ZZ)Vintermediary method_5932Lnet/minecraft/class_9817;method_5932(ZZ)Vofficial aLbuy;a(ZZ)V
-
detachLeash
private static <E extends Entity & Leashable> void detachLeash(E entity, boolean sendPacket, boolean dropItem) - Mappings:
Namespace Name Mixin selector named detachLeashLnet/minecraft/entity/Leashable;detachLeash(Lnet/minecraft/entity/Entity;ZZ)Vintermediary method_60959Lnet/minecraft/class_9817;method_60959(Lnet/minecraft/class_1297;ZZ)Vofficial aLbuy;a(Lbue;ZZ)V
-
tickLeash
- Mappings:
Namespace Name Mixin selector named tickLeashLnet/minecraft/entity/Leashable;tickLeash(Lnet/minecraft/entity/Entity;)Vintermediary method_60965Lnet/minecraft/class_9817;method_60965(Lnet/minecraft/class_1297;)Vofficial b_Lbuy;b_(Lbue;)V
-
beforeLeashTick
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 beforeLeashTickLnet/minecraft/entity/Leashable;beforeLeashTick(Lnet/minecraft/entity/Entity;F)Zintermediary method_60956Lnet/minecraft/class_9817;method_60956(Lnet/minecraft/class_1297;F)Zofficial aLbuy;a(Lbue;F)Z
-
detachLeash
default void detachLeash()- Mappings:
Namespace Name Mixin selector named detachLeashLnet/minecraft/entity/Leashable;detachLeash()Vintermediary method_60970Lnet/minecraft/class_9817;method_60970()Vofficial BLbuy;B()V
-
onShortLeashTick
- Mappings:
Namespace Name Mixin selector named onShortLeashTickLnet/minecraft/entity/Leashable;onShortLeashTick(Lnet/minecraft/entity/Entity;)Vintermediary method_60963Lnet/minecraft/class_9817;method_60963(Lnet/minecraft/class_1297;)Vofficial bLbuy;b(Lbue;)V
-
applyLeashElasticity
- Mappings:
Namespace Name Mixin selector named applyLeashElasticityLnet/minecraft/entity/Leashable;applyLeashElasticity(Lnet/minecraft/entity/Entity;F)Vintermediary method_61162Lnet/minecraft/class_9817;method_61162(Lnet/minecraft/class_1297;F)Vofficial bLbuy;b(Lbue;F)V
-
applyLeashElasticity
private static <E extends Entity & Leashable> void applyLeashElasticity(E entity, Entity leashHolder, float distance) - Mappings:
Namespace Name Mixin selector named applyLeashElasticityLnet/minecraft/entity/Leashable;applyLeashElasticity(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity;F)Vintermediary method_61161Lnet/minecraft/class_9817;method_61161(Lnet/minecraft/class_1297;Lnet/minecraft/class_1297;F)Vofficial aLbuy;a(Lbue;Lbue;F)V
-
attachLeash
- Mappings:
Namespace Name Mixin selector named attachLeashLnet/minecraft/entity/Leashable;attachLeash(Lnet/minecraft/entity/Entity;Z)Vintermediary method_60964Lnet/minecraft/class_9817;method_60964(Lnet/minecraft/class_1297;Z)Vofficial bLbuy;b(Lbue;Z)V
-
attachLeash
private static <E extends Entity & Leashable> void attachLeash(E entity, Entity leashHolder, boolean sendPacket) - Mappings:
Namespace Name Mixin selector named attachLeashLnet/minecraft/entity/Leashable;attachLeash(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity;Z)Vintermediary method_60957Lnet/minecraft/class_9817;method_60957(Lnet/minecraft/class_1297;Lnet/minecraft/class_1297;Z)Vofficial aLbuy;a(Lbue;Lbue;Z)V
-
getLeashHolder
- Mappings:
Namespace Name Mixin selector named getLeashHolderLnet/minecraft/entity/Leashable;getLeashHolder()Lnet/minecraft/entity/Entity;intermediary method_60952Lnet/minecraft/class_9817;method_60952()Lnet/minecraft/class_1297;official CLbuy;C()Lbue;
-
getLeashHolder
- Mappings:
Namespace Name Mixin selector named getLeashHolderLnet/minecraft/entity/Leashable;getLeashHolder(Lnet/minecraft/entity/Entity;)Lnet/minecraft/entity/Entity;intermediary method_60966Lnet/minecraft/class_9817;method_60966(Lnet/minecraft/class_1297;)Lnet/minecraft/class_1297;official cLbuy;c(Lbue;)Lbue;
-