net.minecraft.world.entity

public interface Leashable

bvg
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(bvg$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 void
c(tq arg0)
readLeashData(CompoundTag arg0)
method_60967(class_2487 arg0)
readLeashDataFromNbt(NbtCompound nbt)
private static Leashable$LeashData
a(tq arg0)
readLeashDataInternal(CompoundTag arg0)
method_65896(class_2487 arg0)
readLeashData(NbtCompound nbt)
default void
a(tq arg0, bvg$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, bvg$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
z()
dropLeash()
method_5932()
detachLeash()
default void
A()
removeLeash()
method_65894()
detachLeashWithoutDrop()
default void
B()
onLeashRemoved()
method_65895()
onLeashRemoved()
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_(ard arg0, E arg1)
tickLeash(ServerLevel arg0, E arg1)
method_60965(class_3218 arg0, E arg1)
tickLeash(ServerWorld world, E entity)
default boolean
a(bum arg0, float arg1)
handleLeashAtDistance(Entity arg0, float arg1)
method_60956(class_1297 arg0, float arg1)
beforeLeashTick(Entity leashHolder, float distance)
default void
C()
leashTooFarBehaviour()
method_60970()
breakLongLeash()
default void
a(bum arg0)
closeRangeLeashBehaviour(Entity arg0)
method_60963(class_1297 arg0)
onShortLeashTick(Entity entity)
default void
b(bum 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, bum 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(bum 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, bum 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
D()
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)