Package net.minecraft.entity
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/Leashableintermediary net/minecraft/class_9817official bvv
-
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(ServerWorld world, 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 o_Lbvv;o_: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 p_Lbvv;p_: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 q_Lbvv;q_: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 T_Lbvv;T_()Lbvv$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 aLbvv;a(Lbvv$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 P_Lbvv;P_()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 qLbvv;q()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 Q_Lbvv;Q_()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 yLbvv;y()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 e_Lbvv;e_(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 cLbvv;c(Lum;)Lbvv$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 aLbvv;a(Lum;Lbvv$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 aLbvv;a(Lbvb;Lbvv$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 aLbvv;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 aLbvv;a(Lbvb;ZZ)V
-
tickLeash
- Mappings:
Namespace Name Mixin selector named tickLeashLnet/minecraft/entity/Leashable;tickLeash(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/Entity;)Vintermediary method_60965Lnet/minecraft/class_9817;method_60965(Lnet/minecraft/class_3218;Lnet/minecraft/class_1297;)Vofficial a_Lbvv;a_(Larx;Lbvb;)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 aLbvv;a(Lbvb;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 zLbvv;z()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 aLbvv;a(Lbvb;)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 bLbvv;b(Lbvb;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 aLbvv;a(Lbvb;Lbvb;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 bLbvv;b(Lbvb;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 aLbvv;a(Lbvb;Lbvb;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 ALbvv;A()Lbvb;
-
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 bLbvv;b(Lbvb;)Lbvb;
-