net.minecraft.world.entity

public interface Leashable

bwe
net.minecraft.world.entity.Leashable
net.minecraft.class_9817
net.minecraft.entity.Leashable
net.minecraft.world.entity.Leashable

Field summary

Modifier and TypeField
String
o_
LEASH_TAG
field_52216
LEASH_NBT_KEY
double
p_
LEASH_TOO_FAR_DIST
field_52314
MAX_LEASH_LENGTH
double
q_
LEASH_ELASTIC_DIST
field_52315
SHORT_LEASH_LENGTH

Method summary

Modifier and TypeMethod
Leashable$LeashData
T_()
getLeashData()
method_60955()
getLeashData()
void
a(bwe$a arg0)
setLeashData(Leashable$LeashData arg0)
method_60960(class_9817$class_9818 arg0)
setLeashData(Leashable$LeashData leashData)
default boolean
P_()
isLeashed()
method_60953()
isLeashed()
default boolean
q()
mayBeLeashed()
method_60954()
mightBeLeashed()
default boolean
Q_()
canHaveALeashAttachedToIt()
method_60969()
canLeashAttachTo()
default boolean
y()
canBeLeashed()
method_5931()
canBeLeashed()
default void
e_(int arg0)
setDelayedLeashHolderId(int arg0)
method_60968(int arg0)
setUnresolvedLeashHolderId(int unresolvedLeashHolderId)
default Leashable$LeashData
c(ux arg0)
readLeashData(CompoundTag arg0)
method_60967(class_2487 arg0)
readLeashDataFromNbt(NbtCompound nbt)
default void
a(ux arg0, bwe$a arg1)
writeLeashData(CompoundTag arg0, Leashable$LeashData arg1)
method_60962(class_2487 arg0, class_9817$class_9818 arg1)
writeLeashDataToNbt(NbtCompound nbt, Leashable$LeashData leashData)
private static <E extends Entity extends Leashable> void
a(E arg0, bwe$a arg1)
restoreLeashFromSave(E arg0, Leashable$LeashData arg1)
method_60958(E arg0, class_9817$class_9818 arg1)
resolveLeashData(E entity, Leashable$LeashData leashData)
default void
a(boolean arg0, boolean arg1)
dropLeash(boolean arg0, boolean arg1)
method_5932(boolean arg0, boolean arg1)
detachLeash(boolean sendPacket, boolean dropItem)
private static <E extends Entity extends Leashable> void
a(E arg0, boolean arg1, boolean arg2)
dropLeash(E arg0, boolean arg1, boolean arg2)
method_60959(E arg0, boolean arg1, boolean arg2)
detachLeash(E entity, boolean sendPacket, boolean dropItem)
static <E extends Entity extends Leashable> void
a_(ash arg0, E arg1)
tickLeash(ServerLevel arg0, E arg1)
method_60965(class_3218 arg0, E arg1)
tickLeash(ServerWorld world, E entity)
default boolean
a(bvk arg0, float arg1)
handleLeashAtDistance(Entity arg0, float arg1)
method_60956(class_1297 arg0, float arg1)
beforeLeashTick(Entity leashHolder, float distance)
default void
z()
leashTooFarBehaviour()
method_60970()
detachLeash()
default void
a(bvk arg0)
closeRangeLeashBehaviour(Entity arg0)
method_60963(class_1297 arg0)
onShortLeashTick(Entity entity)
default void
b(bvk arg0, float arg1)
elasticRangeLeashBehaviour(Entity arg0, float arg1)
method_61162(class_1297 arg0, float arg1)
applyLeashElasticity(Entity leashHolder, float distance)
private static <E extends Entity extends Leashable> void
a(E arg0, bvk arg1, float arg2)
legacyElasticRangeLeashBehaviour(E arg0, Entity arg1, float arg2)
method_61161(E arg0, class_1297 arg1, float arg2)
applyLeashElasticity(E entity, Entity leashHolder, float distance)
default void
b(bvk arg0, boolean arg1)
setLeashedTo(Entity arg0, boolean arg1)
method_60964(class_1297 arg0, boolean arg1)
attachLeash(Entity leashHolder, boolean sendPacket)
private static <E extends Entity extends Leashable> void
a(E arg0, bvk arg1, boolean arg2)
setLeashedTo(E arg0, Entity arg1, boolean arg2)
method_60957(E arg0, class_1297 arg1, boolean arg2)
attachLeash(E entity, Entity leashHolder, boolean sendPacket)
default Entity
A()
getLeashHolder()
method_60952()
getLeashHolder()
private static <E extends Entity extends Leashable> Entity
b(E arg0)
getLeashHolder(E arg0)
method_60966(E arg0)
getLeashHolder(E entity)