net.minecraft.world.entity

public interface Leashable

cak
net.minecraft.world.entity.Leashable
net.minecraft.class_9817
net.minecraft.entity.Leashable

Field summary

Modifier and TypeField
String
x_
LEASH_TAG
field_52216
LEASH_NBT_KEY
double
h
LEASH_TOO_FAR_DIST
field_52314
DEFAULT_SNAPPING_DISTANCE
double
i
LEASH_ELASTIC_DIST
field_52315
DEFAULT_ELASTIC_DISTANCE
double
j
MAXIMUM_ALLOWED_LEASHED_DIST
field_60003
field_60003
Vec3
k
AXIS_SPECIFIC_ELASTICITY
field_60004
ELASTICITY_MULTIPLIER
float
d_
SPRING_DAMPENING
field_59997
field_59997
double
e_
TORSIONAL_ELASTICITY
field_59998
field_59998
double
f_
STIFFNESS
field_59999
field_59999
List<Vec3>
g_
ENTITY_ATTACHMENT_POINT
field_60000
HELD_ENTITY_ATTACHMENT_POINT
List<Vec3>
h_
LEASHER_ATTACHMENT_POINT
field_60001
LEASH_HOLDER_ATTACHMENT_POINT
List<Vec3>
i_
SHARED_QUAD_ATTACHMENT_POINTS
field_60002
QUAD_LEASH_ATTACHMENT_POINTS

Method summary

Modifier and TypeMethod
Leashable$LeashData
T_()
getLeashData()
method_60955()
getLeashData()
void
a(cak$a arg0)
setLeashData(Leashable$LeashData arg0)
method_60960(class_9817$class_9818 arg0)
setLeashData(Leashable$LeashData leashData)
default boolean
R_()
isLeashed()
method_60953()
isLeashed()
default boolean
u()
mayBeLeashed()
method_60954()
mightBeLeashed()
default boolean
b_(bzm arg0)
canHaveALeashAttachedTo(Entity arg0)
method_71002(class_1297 arg0)
canBeLeashedTo(Entity entity)
default double
b(bzm arg0)
leashDistanceTo(Entity arg0)
method_71001(class_1297 arg0)
getDistanceToCenter(Entity entity)
default boolean
v()
canBeLeashed()
method_5931()
canBeLeashed()
default void
e_(int arg0)
setDelayedLeashHolderId(int arg0)
method_60968(int arg0)
setUnresolvedLeashHolderId(int unresolvedLeashHolderId)
default void
b(fda arg0)
readLeashData(ValueInput arg0)
method_60967(class_11368 arg0)
readLeashData(ReadView view)
default void
a(fdc arg0, cak$a arg1)
writeLeashData(ValueOutput arg0, Leashable$LeashData arg1)
method_60962(class_11372 arg0, class_9817$class_9818 arg1)
writeLeashData(WriteView view, Leashable$LeashData leashData)
private static <E extends Entity extends Leashable> void
b(E arg0, cak$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
S_()
dropLeash()
method_5932()
detachLeash()
default void
x()
removeLeash()
method_65894()
detachLeashWithoutDrop()
default void
y()
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_(aub arg0, E arg1)
tickLeash(ServerLevel arg0, E arg1)
method_60965(class_3218 arg0, E arg1)
tickLeash(ServerWorld world, E entity)
default void
z()
onElasticLeashPull()
method_71006()
onLongLeashTick()
default double
A()
leashSnapDistance()
method_70989()
getLeashSnappingDistance()
default double
B()
leashElasticDistance()
method_70990()
getElasticLeashDistance()
static <E extends Entity extends Leashable> float
c(E arg0)
angularFriction(E arg0)
method_71003(E arg0)
getSlipperiness(E entity)
default void
d(bzm arg0)
whenLeashedTo(Entity arg0)
method_71005(class_1297 arg0)
beforeLeashTick(Entity leashHolder)
default void
C()
leashTooFarBehaviour()
method_60970()
snapLongLeash()
default void
e(bzm arg0)
closeRangeLeashBehaviour(Entity arg0)
method_60963(class_1297 arg0)
onShortLeashTick(Entity entity)
default boolean
a(bzm arg0, cak$a arg1)
checkElasticInteractions(Entity arg0, Leashable$LeashData arg1)
method_70995(class_1297 arg0, class_9817$class_9818 arg1)
applyElasticity(Entity leashHolder, Leashable$LeashData leashData)
private static Vec3
g(bzm arg0)
getHolderMovement(Entity arg0)
method_71767(class_1297 arg0)
getLeashHolderMovement(Entity leashHolder)
private static <E extends Entity extends Leashable> List<Leashable$Wrench>
a(E arg0, bzm arg1, List<fis> arg2, List<fis> arg3)
computeElasticInteraction(E arg0, Entity arg1, List<Vec3> arg2, List<Vec3> arg3)
method_70994(E arg0, class_1297 arg1, List<class_243> arg2, List<class_243> arg3)
calculateLeashElasticities(E heldEntity, Entity leashHolder, List<Vec3d> heldEntityAttachmentPoints, List<Vec3d> leashHolderAttachmentPoints)
private static Optional<Leashable$Wrench>
a(fis arg0, fis arg1, double arg2, fis arg3, fis arg4)
computeDampenedSpringInteraction(Vec3 arg0, Vec3 arg1, double arg2, Vec3 arg3, Vec3 arg4)
method_70999(class_243 arg0, class_243 arg1, double arg2, class_243 arg3, class_243 arg4)
calculateLeashElasticity(Vec3d leashHolderAttachmentPos, Vec3d heldEntityAttachmentPos, double elasticDistance, Vec3d heldEntityMovement, Vec3d heldEntityAttachmentPoint)
default boolean
D()
supportQuadLeash()
method_70991()
canUseQuadLeashAttachmentPoint()
default Vec3[]
E()
getQuadLeashOffsets()
method_70992()
getQuadLeashOffsets()
static Vec3[]
a(bzm arg0, double arg1, double arg2, double arg3, double arg4)
createQuadLeashOffsets(Entity arg0, double arg1, double arg2, double arg3, double arg4)
method_70993(class_1297 arg0, double arg1, double arg2, double arg3, double arg4)
createQuadLeashOffsets(Entity leashedEntity, double addedZOffset, double zOffset, double xOffset, double yOffset)
default Vec3
a_(float arg0)
getLeashOffset(float arg0)
method_45321(float arg0)
getLeashOffset(float tickProgress)
default Vec3
F()
getLeashOffset()
method_29919()
getLeashOffset()
default void
a_(bzm 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, bzm 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
aj_()
getLeashHolder()
method_60952()
getLeashHolder()
private static <E extends Entity extends Leashable> Entity
h(E arg0)
getLeashHolder(E arg0)
method_60966(E arg0)
getLeashHolder(E entity)
static List<Leashable>
c_(bzm arg0)
leashableLeashedTo(Entity arg0)
method_71004(class_1297 arg0)
collectLeashablesHeldBy(Entity leashHolder)
static List<Leashable>
a(bzm arg0, Predicate<cak> arg1)
leashableInArea(Entity arg0, Predicate<Leashable> arg1)
method_70997(class_1297 arg0, Predicate<class_9817> arg1)
collectLeashablesAround(Entity entity, Predicate<Leashable> leashablePredicate)
static List<Leashable>
a(dmu arg0, fis arg1, Predicate<cak> arg2)
leashableInArea(Level arg0, Vec3 arg1, Predicate<Leashable> arg2)
method_70998(class_1937 arg0, class_243 arg1, Predicate<class_9817> arg2)
collectLeashablesAround(World world, Vec3d pos, Predicate<Leashable> leashablePredicate)