net.minecraft.entity

public interface Leashable

ceu
net.minecraft.world.entity.Leashable
net.minecraft.class_9817
net.minecraft.entity.Leashable
net.minecraft.unmapped.C_gbavazgo
net.minecraft.entity.Leashable
net.minecraft.src.C_336597_

Field summary

Modifier and TypeField
String
r_
LEASH_TAG
field_52216
LEASH_NBT_KEY
f_hwlweeax
LEASH_NBT_KEY
f_337198_
double
h
LEASH_TOO_FAR_DIST
field_52314
DEFAULT_SNAPPING_DISTANCE
f_crwvitgo
DEFAULT_MAX_LEASH_LENGTH
f_337376_
double
i
LEASH_ELASTIC_DIST
field_52315
DEFAULT_ELASTIC_DISTANCE
f_iiewyzxn
DEFAULT_PULL_THRESHOLD
f_337592_
double
j
MAXIMUM_ALLOWED_LEASHED_DIST
field_60003
field_60003
f_vmnyoroc
MAXIMUM_LEASHED_DISTANCE
f_399071_
Vec3d
k
AXIS_SPECIFIC_ELASTICITY
field_60004
ELASTICITY_MULTIPLIER
f_fgoxkuky
PULL_MULTIPLIER
f_399694_
float
l
SPRING_DAMPENING
field_59997
field_59997
f_eblskylh
SPRING_DAMPENING
f_399133_
double
m
TORSIONAL_ELASTICITY
field_59998
field_59998
f_lcyjyhtb
TORSIONAL_ELASTICITY
f_400177_
double
n
STIFFNESS
field_59999
field_59999
f_tntkkdur
STIFFNESS
f_399281_
List<Vec3d>
o
ENTITY_ATTACHMENT_POINT
field_60000
HELD_ENTITY_ATTACHMENT_POINT
f_uutxzxka
LEASHABLE_OFFSET_FACTOR
f_400188_
List<Vec3d>
p
LEASHER_ATTACHMENT_POINT
field_60001
LEASH_HOLDER_ATTACHMENT_POINT
f_hqumivqd
LEASH_HOLDER_OFFSET_FACTOR
f_399353_
List<Vec3d>
q
SHARED_QUAD_ATTACHMENT_POINTS
field_60002
QUAD_LEASH_ATTACHMENT_POINTS
f_icwmppaf
QUAD_LEASH_OFFSET_FACTORS
f_399916_

Method summary

Modifier and TypeMethod
Leashable$LeashData
U_()
getLeashData()
method_60955()
getLeashData()
m_hkieuyqm()
getLeashData()
m_338492_()
void
a(ceu$a arg0)
setLeashData(Leashable$LeashData arg0)
method_60960(class_9817$class_9818 arg0)
setLeashData(Leashable$LeashData leashData)
m_lccupwok(C_gbavazgo$C_trsxpkpu arg0)
setLeashData(Leashable$LeashData data)
m_338401_(C_336597_$C_336538_ arg0)
default boolean
T_()
isLeashed()
method_60953()
isLeashed()
m_egrefywv()
isLeashed()
m_339418_()
default boolean
o()
mayBeLeashed()
method_60954()
mightBeLeashed()
m_feakufat()
hasLeashData()
m_340201_()
default boolean
b_(cdv arg0)
canHaveALeashAttachedTo(Entity arg0)
method_71002(class_1297 arg0)
canBeLeashedTo(Entity entity)
m_tgzaeiau(C_astfners arg0)
canBeLeashedBy(Entity entity)
m_402793_(C_507_ arg0)
default double
b(cdv arg0)
leashDistanceTo(Entity arg0)
method_71001(class_1297 arg0)
getDistanceToCenter(Entity entity)
m_onphfbfp(C_astfners arg0)
getDistanceTo(Entity entity)
m_401585_(C_507_ arg0)
default boolean
v()
canBeLeashed()
method_5931()
canBeLeashed()
m_xvyvanvw()
canBeLeashed()
m_6573_()
default void
e_(int arg0)
setDelayedLeashHolderId(int arg0)
method_60968(int arg0)
setUnresolvedLeashHolderId(int unresolvedLeashHolderId)
m_jywtllgu(int arg0)
setDelayedLeashHolderId(int delayedLeashHolderId)
m_339199_(int arg0)
default void
b(fip arg0)
readLeashData(ValueInput arg0)
method_60967(class_11368 arg0)
readLeashData(ReadView view)
m_fmujdyoh(C_djkzhngg arg0)
readLeashData(DataReader arg0)
m_372826_(C_398549_ arg0)
default void
a(fir o, ceu$a arg1)
writeLeashData(ValueOutput arg0, Leashable$LeashData arg1)
method_60962(class_11372 arg0, class_9817$class_9818 arg1)
writeLeashData(WriteView view, Leashable$LeashData leashData)
m_ydrqybvl(C_kespdwpv arg0, C_gbavazgo$C_trsxpkpu arg1)
writeLeashData(DataWriter arg0, Leashable$LeashData data)
m_339731_(C_398537_ p_345503_, C_336597_$C_336538_ arg1)
private static <E extends Entity extends Leashable> void
b(E o, ceu$a o)
restoreLeashFromSave(E arg0, Leashable$LeashData arg1)
method_60958(E arg0, class_9817$class_9818 arg1)
resolveLeashData(E entity, Leashable$LeashData leashData)
m_yvbpzuud(E arg0, C_gbavazgo$C_trsxpkpu arg1)
resolveLeashData(E entity, Leashable$LeashData data)
m_340112_(E p_343564_, C_336597_$C_336538_ p_344259_)
default void
w()
dropLeash()
method_5932()
detachLeash()
m_brbnwutv()
dropLeash()
m_339020_()
default void
x()
removeLeash()
method_65894()
detachLeashWithoutDrop()
m_gxfemicl()
removeLeash()
m_372320_()
default void
y()
onLeashRemoved()
method_65895()
onLeashRemoved()
m_viwtpsbf()
onLeashDetached()
m_372585_()
private static <E extends Entity extends Leashable> void
a(E o, boolean o, boolean o)
dropLeash(E arg0, boolean arg1, boolean arg2)
method_60959(E arg0, boolean arg1, boolean arg2)
detachLeash(E entity, boolean sendPacket, boolean dropItem)
m_zuzsbkuh(E arg0, boolean arg1, boolean arg2)
detachLeash(E entity, boolean sendPacket, boolean dropItem)
m_339838_(E p_343459_, boolean p_342580_, boolean p_344786_)
static <E extends Entity extends Leashable> void
a_(awx o, E o)
tickLeash(ServerLevel arg0, E arg1)
method_60965(class_3218 arg0, E arg1)
tickLeash(ServerWorld world, E entity)
m_ydkqpzwu(C_bdwnwhiu arg0, E arg1)
tickLeash(ServerWorld world, E leashable)
m_338823_(C_12_ p_366578_, E p_343570_)
default void
z()
onElasticLeashPull()
method_71006()
onLongLeashTick()
m_kangjhum()
onLeashPull()
m_401765_()
default double
A()
leashSnapDistance()
method_70989()
getLeashSnappingDistance()
m_twruooup()
getMaxLeashLength()
m_401111_()
default double
B()
leashElasticDistance()
method_70990()
getElasticLeashDistance()
m_dtqzazqr()
getPullThreshold()
m_402048_()
static <E extends Entity extends Leashable> float
c(E o)
angularFriction(E arg0)
method_71003(E arg0)
getSlipperiness(E entity)
m_hskteemq(E arg0)
getAngularDrag(E leashable)
m_403532_(E p_408063_)
default void
d(cdv arg0)
whenLeashedTo(Entity arg0)
method_71005(class_1297 arg0)
beforeLeashTick(Entity leashHolder)
m_agcvyesn(C_astfners arg0)
tickLeashed(Entity holder)
m_401384_(C_507_ arg0)
default void
C()
leashTooFarBehaviour()
method_60970()
snapLongLeash()
m_kkwyhrvj()
onLeashLengthExceeded()
m_339671_()
default void
e(cdv arg0)
closeRangeLeashBehaviour(Entity arg0)
method_60963(class_1297 arg0)
onShortLeashTick(Entity entity)
m_frfgxbsb(C_astfners arg0)
onLooseLeashTick(Entity entity)
m_338827_(C_507_ arg0)
default boolean
a(cdv o, ceu$a arg1)
checkElasticInteractions(Entity arg0, Leashable$LeashData arg1)
method_70995(class_1297 arg0, class_9817$class_9818 arg1)
applyElasticity(Entity leashHolder, Leashable$LeashData leashData)
m_damipxvm(C_astfners arg0, C_gbavazgo$C_trsxpkpu arg1)
applyLeashPulls(Entity leashHolder, Leashable$LeashData leashData)
m_401203_(C_507_ p_407235_, C_336597_$C_336538_ arg1)
private static Vec3d
g(cdv o)
getHolderMovement(Entity arg0)
method_71767(class_1297 arg0)
getLeashHolderMovement(Entity leashHolder)
m_clmmucml(C_astfners arg0)
m_clmmucml(Entity entity)
m_401955_(C_507_ p_407164_)
private static <E extends Entity extends Leashable> List<Leashable$Elasticity>
a(E o, cdv o, List<foh> o, List<foh> o)
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)
m_gpophcoy(E arg0, C_astfners arg1, List<C_vgpupfxx> arg2, List<C_vgpupfxx> arg3)
calculatePulls(E leashable, Entity leashHolder, List<Vec3d> leashableOffsetFactors, List<Vec3d> leashHolderOffsetFactors)
m_403640_(E p_408183_, C_507_ p_406565_, List<C_3046_> p_410674_, List<C_3046_> p_409022_)
private static Optional<Leashable$Elasticity>
a(foh o, foh o, double o, foh o, foh 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)
m_uybzglkt(C_vgpupfxx arg0, C_vgpupfxx arg1, double arg2, C_vgpupfxx arg3, C_vgpupfxx arg4)
getPull(Vec3d heldPos, Vec3d leashedPos, double threshold, Vec3d leashableMovement, Vec3d leashedOffset)
m_401780_(C_3046_ p_409865_, C_3046_ p_405872_, double p_409391_, C_3046_ p_409272_, C_3046_ arg4)
default boolean
D()
supportQuadLeash()
method_70991()
canUseQuadLeashAttachmentPoint()
m_hvwqeacy()
canBeQuadLeashed()
m_352571_()
default Vec3d[]
E()
getQuadLeashOffsets()
method_70992()
getQuadLeashOffsets()
m_icdbliwm()
getQuadLeashAttachmentOffsets()
m_401877_()
static Vec3d[]
a(cdv o, double o, double o, 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)
m_gnmtyuso(C_astfners arg0, double arg1, double arg2, double arg3, double arg4)
createQuadLeashOffsets(Entity entity, double forwardFactor, double zFactor, double xFactor, double yFactor)
m_402847_(C_507_ p_408706_, double p_406447_, double p_407443_, double arg3, double arg4)
default Vec3d
a_(float arg0)
getLeashOffset(float arg0)
method_45321(float arg0)
getLeashOffset(float tickProgress)
m_mcdgpyka(float arg0)
getLeashOffset(float tickDelta)
m_245894_(float arg0)
default Vec3d
F()
getLeashOffset()
method_29919()
getLeashOffset()
m_klnnueyu()
getLeashOffset()
m_27831_()
default void
a_(cdv o, boolean arg1)
setLeashedTo(Entity arg0, boolean arg1)
method_60964(class_1297 arg0, boolean arg1)
attachLeash(Entity leashHolder, boolean sendPacket)
m_epgfrqcc(C_astfners arg0, boolean arg1)
attachLeash(Entity entity, boolean sendPacket)
m_340273_(C_507_ p_342255_, boolean arg1)
private static <E extends Entity extends Leashable> void
a(E o, cdv o, boolean o)
setLeashedTo(E arg0, Entity arg1, boolean arg2)
method_60957(E arg0, class_1297 arg1, boolean arg2)
attachLeash(E entity, Entity leashHolder, boolean sendPacket)
m_ovrpaqfw(E arg0, C_astfners arg1, boolean arg2)
attachLeash(E entity, Entity leashHolder, boolean sendPacket)
m_339256_(E p_342775_, C_507_ p_342643_, boolean p_343557_)
default Entity
ak_()
getLeashHolder()
method_60952()
getLeashHolder()
m_xkmzlwed()
getLeashHolder()
m_340614_()
private static <E extends Entity extends Leashable> Entity
h(E o)
getLeashHolder(E arg0)
method_60966(E arg0)
getLeashHolder(E entity)
m_gnuhezcf(E arg0)
getLeashHolder(E leashed)
m_339450_(E p_342282_)
static List<Leashable>
c_(cdv o)
leashableLeashedTo(Entity arg0)
method_71004(class_1297 arg0)
collectLeashablesHeldBy(Entity leashHolder)
m_gwlvyiep(C_astfners arg0)
getHeldLeashables(Entity holder)
m_403542_(C_507_ p_409040_)
static List<Leashable>
a(cdv o, Predicate<ceu> o)
leashableInArea(Entity arg0, Predicate<Leashable> arg1)
method_70997(class_1297 arg0, Predicate<class_9817> arg1)
collectLeashablesAround(Entity entity, Predicate<Leashable> leashablePredicate)
m_hyeqdukm(C_astfners arg0, Predicate<C_gbavazgo> arg1)
getNearbyLeashables(Entity entity, Predicate<Leashable> predicate)
m_402388_(C_507_ p_410041_, Predicate<C_336597_> p_410564_)
static List<Leashable>
a(drq o, foh o, Predicate<ceu> o)
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)
m_slcvzuif(C_cdctfzbn arg0, C_vgpupfxx arg1, Predicate<C_gbavazgo> arg2)
getNearbyLeashables(World world, Vec3d pos, Predicate<Leashable> predicate)
m_404156_(C_1596_ p_409830_, C_3046_ p_407309_, Predicate<C_336597_> p_409916_)