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,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 bwx
-
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 voiddefault booleandefault booleandefault voiddetachLeash(E entity, boolean sendPacket, boolean dropItem) default voidgetLeashHolder(E entity) default booleandefault booleandefault voiddefault voidonShortLeashTick(Entity entity) private static @Nullable Leashable.LeashDatareadLeashData(NbtCompound nbt) default voidresolveLeashData(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_Lbwx;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_Lbwx;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_Lbwx;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_Lbwx;T_()Lbwx$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 aLbwx;a(Lbwx$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 O_Lbwx;O_()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 M_Lbwx;M_()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 pLbwx;p()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 wLbwx;w()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_Lbwx;e_(I)V
-
readLeashDataFromNbt
- Mappings:
Namespace Name Mixin selector named readLeashDataFromNbtLnet/minecraft/entity/Leashable;readLeashDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)Vintermediary method_60967Lnet/minecraft/class_9817;method_60967(Lnet/minecraft/class_2487;)Vofficial cLbwx;c(Ltx;)V
-
readLeashData
- Mappings:
Namespace Name Mixin selector named readLeashDataLnet/minecraft/entity/Leashable;readLeashData(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/entity/Leashable$LeashData;intermediary method_65896Lnet/minecraft/class_9817;method_65896(Lnet/minecraft/class_2487;)Lnet/minecraft/class_9817$class_9818;official aLbwx;a(Ltx;)Lbwx$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 aLbwx;a(Ltx;Lbwx$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 aLbwx;a(Lbwa;Lbwx$a;)V
-
detachLeash
default void detachLeash()- Mappings:
Namespace Name Mixin selector named detachLeashLnet/minecraft/entity/Leashable;detachLeash()Vintermediary method_5932Lnet/minecraft/class_9817;method_5932()Vofficial yLbwx;y()V
-
detachLeashWithoutDrop
default void detachLeashWithoutDrop()- Mappings:
Namespace Name Mixin selector named detachLeashWithoutDropLnet/minecraft/entity/Leashable;detachLeashWithoutDrop()Vintermediary method_65894Lnet/minecraft/class_9817;method_65894()Vofficial zLbwx;z()V
-
onLeashRemoved
default void onLeashRemoved()- Mappings:
Namespace Name Mixin selector named onLeashRemovedLnet/minecraft/entity/Leashable;onLeashRemoved()Vintermediary method_65895Lnet/minecraft/class_9817;method_65895()Vofficial ALbwx;A()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 aLbwx;a(Lbwa;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_Lbwx;a_(Laro;Lbwa;)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 aLbwx;a(Lbwa;F)Z
-
breakLongLeash
default void breakLongLeash()- Mappings:
Namespace Name Mixin selector named breakLongLeashLnet/minecraft/entity/Leashable;breakLongLeash()Vintermediary method_60970Lnet/minecraft/class_9817;method_60970()Vofficial BLbwx;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 aLbwx;a(Lbwa;)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 bLbwx;b(Lbwa;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 aLbwx;a(Lbwa;Lbwa;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 a_Lbwx;a_(Lbwa;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 aLbwx;a(Lbwa;Lbwa;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 CLbwx;C()Lbwa;
-
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 bLbwx;b(Lbwa;)Lbwa;
-