类 LeashDataImpl
java.lang.Object
top.r3944realms.superleadrope.content.capability.impi.LeashDataImpl
- 所有已实现的接口:
net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>,ILeashData
预期行为
| 场景 | 行为 |
|---|---|
| 距离 ≤ maxDistance * elasticDistanceScale | 正常弹性拉力,重置 keepLeashTicks 为最大值 |
| maxDistance * elasticDistanceScale < distance ≤ 配置extremeSnapFactor * maxDistance * elasticDistanceScale | 增强拉力,并减少 keepLeashTicks(每Tick减1) |
| distance > 配置extremeSnapFactor * maxDistance * elasticDistanceScale && keepLeashTicks > 0 | 施加更强拉力并减少Tick |
| distance > 配置extremeSnapFactor * maxDistance * elasticDistanceScale && keepLeashTicks == 0 | 立即断裂 |
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidaddDelayedLeash(@NotNull UUID holderUUID) Add delayed leash.voidaddDelayedLeash(@NotNull net.minecraft.world.entity.Entity holder) Add delayed leash.booleanaddLeash(net.minecraft.world.entity.Entity holder) Add leash boolean.voidAdd leash.booleanAdd leash boolean.booleanAdd leash boolean.booleanaddLeash(net.minecraft.world.entity.Entity holder, Double maxDistance, Double elasticDistanceScale, int maxKeepLeashTicks) Add leash boolean.booleanaddLeash(net.minecraft.world.entity.Entity holder, Double maxDistance, Double elasticDistanceScale, int maxKeepLeashTicks, String reserved) Add leash boolean.booleanaddLeash(net.minecraft.world.entity.Entity holder, Double maxDistance, Double elasticDistanceScale, String reserved) Add leash boolean.booleanAdd leash boolean.booleanAdd leash boolean.void计算拴绳拉力(防抖动逻辑)voidApply leash forces client player.booleancanBeAttachedTo(net.minecraft.world.entity.Entity pEntity) Can be attached to boolean.booleanCan be leashed boolean.void定期调用,每 tick 或每几秒检测voiddeserializeNBT(@NotNull net.minecraft.nbt.CompoundTag nbt) Gets all leashes.Gets all leashes.Gets all leashes.doubleGets current elastic distance scale.doubleGets current max distance.doubleGets default elastic distance scale.doubleGets default max distance.getLeashInfo(UUID holderUUID) Gets leash info.getLeashInfo(net.minecraft.core.BlockPos knotPos) Gets leash info.getLeashInfo(net.minecraft.world.entity.Entity holder) Gets leash info.intgetMaxKeepTicks(UUID holderUUID) Gets max keep ticks.intgetMaxKeepTicks(net.minecraft.core.BlockPos knotPos) Gets max keep ticks.intgetMaxKeepTicks(net.minecraft.world.entity.Entity holder) Gets max keep ticks.@Nullable DoubleGets static elastic distance scale.@Nullable DoubleGets static max distance.booleanHas holder leash boolean.booleanHas knot leash boolean.booleanhasLeash()Has leash boolean.void立即同步,无视时间间隔booleanisInDelayedLeash(UUID holderUUID) Is in delayed leash boolean.static booleanisLeashable(net.minecraft.world.entity.Entity entity) Is leashable boolean.booleanisLeashedBy(UUID holderUUID) Is leashed by boolean.booleanisLeashedBy(net.minecraft.core.BlockPos knotPos) Is leashed by boolean.booleanisLeashedBy(net.minecraft.world.entity.Entity holder) Is leashed by boolean.net.minecraft.world.phys.Vec3limitMovement(@NotNull net.minecraft.world.phys.Vec3 movement) Limit movement vec 3.voidMark for sync.抢占位(已离线玩家)。voidRemove all holder leashes.voidRemove all knot leashes.voidRemove all leashes.voidremoveDelayedLeash(UUID onceHolderUUID) Remove delayed leash.booleanremoveLeash(UUID holderUUID) Remove leash boolean.booleanremoveLeash(net.minecraft.core.BlockPos knotPos) Remove leash boolean.booleanremoveLeash(net.minecraft.world.entity.Entity holder) Remove leash boolean.net.minecraft.world.entity.Entityself()Self entity.net.minecraft.nbt.CompoundTagbooleansetElasticDistanceScale(UUID holderUUID, @Nullable Double scale) Sets elastic distance scale.booleansetElasticDistanceScale(UUID holderUUID, @Nullable Double scale, int newMaxKeepLeashTicks) Sets elastic distance scale.booleansetElasticDistanceScale(UUID holderUUID, @Nullable Double scale, int maxKeepTicks, String reserved) Sets elastic distance scale.booleansetElasticDistanceScale(net.minecraft.core.BlockPos knotPos, @Nullable Double scale) Sets elastic distance scale.booleansetElasticDistanceScale(net.minecraft.core.BlockPos knotPos, @Nullable Double scale, int newMaxKeepLeashTicks) Sets elastic distance scale.booleansetElasticDistanceScale(net.minecraft.core.BlockPos knotPos, @Nullable Double scale, int newMaxKeepLeashTicks, String reserved) Sets elastic distance scale.booleansetElasticDistanceScale(net.minecraft.world.entity.Entity holder, @Nullable Double scale) Sets elastic distance scale.booleansetElasticDistanceScale(net.minecraft.world.entity.Entity holder, @Nullable Double scale, int newMaxKeepLeashTicks) Sets elastic distance scale.booleansetElasticDistanceScale(net.minecraft.world.entity.Entity holder, @Nullable Double scale, int maxKeepTicks, String reserved) Sets elastic distance scale.voidsetElasticDistanceScaleInner(UUID holderUUID, @Nullable Double scale) Sets elastic distance scale inner.voidsetElasticDistanceScaleInner(net.minecraft.core.BlockPos knotPos, @Nullable Double scale) Sets elastic distance scale inner.booleansetMaxDistance(UUID holderUUID, @Nullable Double newMaxDistance) Sets max distance.booleansetMaxDistance(UUID holderUUID, @Nullable Double newMaxDistance, int newMaxKeepLeashTicks) Sets max distance.booleansetMaxDistance(UUID holderUUID, @Nullable Double newMaxDistance, int maxKeepTicks, String reserved) Sets max distance.booleansetMaxDistance(UUID holderUUID, Double newMaxDistance, String reserved) Sets max distance.booleansetMaxDistance(net.minecraft.core.BlockPos knotPos, @Nullable Double newMaxDistance) Sets max distance.booleansetMaxDistance(net.minecraft.core.BlockPos knotPos, @Nullable Double newMaxDistance, int newMaxKeepLeashTicks) Sets max distance.booleansetMaxDistance(net.minecraft.core.BlockPos knotPos, @Nullable Double newMaxDistance, int maxKeepTicks, String reserved) Sets max distance.booleansetMaxDistance(net.minecraft.core.BlockPos knotPos, Double newMaxDistance, String reserved) Sets max distance.booleansetMaxDistance(net.minecraft.world.entity.Entity holder, @Nullable Double newMaxDistance) Sets max distance.booleansetMaxDistance(net.minecraft.world.entity.Entity holder, @Nullable Double newMaxDistance, int newMaxKeepLeashTicks) Sets max distance.booleansetMaxDistance(net.minecraft.world.entity.Entity holder, @Nullable Double newMaxDistance, int maxKeepTicks, String reserved) Sets max distance.booleansetMaxDistance(net.minecraft.world.entity.Entity holder, Double distance, String reserved) Sets max distance.voidsetMaxDistanceInner(UUID holderUUID, @Nullable Double newMaxDistance) Sets max distance inner.voidsetMaxDistanceInner(net.minecraft.core.BlockPos knotPos, @Nullable Double newMaxDistance) Sets max distance inner.booleansetMaxKeepTicks(UUID holderUUID, int maxKeepTicks) Sets max keep ticks.booleansetMaxKeepTicks(net.minecraft.core.BlockPos knotPos, int maxKeepTicks) Sets max keep ticks.booleansetMaxKeepTicks(net.minecraft.world.entity.Entity holder, int maxKeepTicks) Sets max keep ticks.voidsetStaticElasticDistanceScale(@Nullable Double scale) Sets static elastic distance scale.voidsetStaticMaxDistance(@Nullable Double distance) Sets static max distance.booleantransferLeash(UUID oldHolderUUID, net.minecraft.world.entity.Entity newHolder) Transfer leash boolean.booleantransferLeash(UUID oldHolderUUID, net.minecraft.world.entity.Entity newHolder, String reserved) Transfer leash boolean.booleantransferLeash(net.minecraft.core.BlockPos knotPos, net.minecraft.world.entity.Entity newHolder) Transfer leash boolean.booleantransferLeash(net.minecraft.core.BlockPos knotPos, net.minecraft.world.entity.Entity newHolder, String reserved) Transfer leash boolean.booleantransferLeash(net.minecraft.world.entity.Entity holder, net.minecraft.world.entity.Entity newHolder) Transfer leash boolean.booleantransferLeash(net.minecraft.world.entity.Entity holder, net.minecraft.world.entity.Entity newHolder, String reserved) Transfer leash boolean.voidUpdate all elastic distance scale.voidUpdate all max distance.从接口继承的方法 top.r3944realms.superleadrope.api.type.capabilty.ILeashData
updateAll
-
构造器详细资料
-
LeashDataImpl
public LeashDataImpl(net.minecraft.world.entity.Entity entity) Instantiates a new Leash data.- 参数:
entity- the entity
-
-
方法详细资料
-
markForSync
public void markForSync()从接口复制的说明:ILeashDataMark for sync.- 指定者:
markForSync在接口中ILeashData
-
immediateSync
public void immediateSync()立即同步,无视时间间隔- 指定者:
immediateSync在接口中ILeashData
-
checkSync
public void checkSync()定期调用,每 tick 或每几秒检测- 指定者:
checkSync在接口中ILeashData
-
self
public net.minecraft.world.entity.Entity self()从接口复制的说明:ILeashDataSelf entity.- 指定者:
self在接口中ILeashData- 返回:
- the entity
-
getStaticMaxDistance
从接口复制的说明:ILeashDataGets static max distance.- 指定者:
getStaticMaxDistance在接口中ILeashData- 返回:
- the static max distance
-
setStaticMaxDistance
从接口复制的说明:ILeashDataSets static max distance.- 指定者:
setStaticMaxDistance在接口中ILeashData- 参数:
distance- the distance
-
getDefaultMaxDistance
public double getDefaultMaxDistance()从接口复制的说明:ILeashDataGets default max distance.- 指定者:
getDefaultMaxDistance在接口中ILeashData- 返回:
- the default max distance
-
getCurrentMaxDistance
public double getCurrentMaxDistance()从接口复制的说明:ILeashDataGets current max distance.- 指定者:
getCurrentMaxDistance在接口中ILeashData- 返回:
- the current max distance
-
updateAllMaxDistance
public void updateAllMaxDistance()从接口复制的说明:ILeashDataUpdate all max distance.- 指定者:
updateAllMaxDistance在接口中ILeashData
-
getStaticElasticDistanceScale
从接口复制的说明:ILeashDataGets static elastic distance scale.- 指定者:
getStaticElasticDistanceScale在接口中ILeashData- 返回:
- the static elastic distance scale
-
setStaticElasticDistanceScale
从接口复制的说明:ILeashDataSets static elastic distance scale.- 指定者:
setStaticElasticDistanceScale在接口中ILeashData- 参数:
scale- the distance
-
getDefaultElasticDistanceScale
public double getDefaultElasticDistanceScale()从接口复制的说明:ILeashDataGets default elastic distance scale.- 指定者:
getDefaultElasticDistanceScale在接口中ILeashData- 返回:
- the default elastic distance scale
-
getCurrentElasticDistanceScale
public double getCurrentElasticDistanceScale()从接口复制的说明:ILeashDataGets current elastic distance scale.- 指定者:
getCurrentElasticDistanceScale在接口中ILeashData- 返回:
- the current elastic distance scale
-
updateAllElasticDistanceScale
public void updateAllElasticDistanceScale()从接口复制的说明:ILeashDataUpdate all elastic distance scale.- 指定者:
updateAllElasticDistanceScale在接口中ILeashData
-
addLeash
public boolean addLeash(net.minecraft.world.entity.Entity holder) 从接口复制的说明:ILeashDataAdd leash boolean.- 指定者:
addLeash在接口中ILeashData- 参数:
holder- the holder- 返回:
- the boolean
-
addLeash
从接口复制的说明:ILeashDataAdd leash boolean.- 指定者:
addLeash在接口中ILeashData- 参数:
holder- the holderreserved- the reserved- 返回:
- the boolean
-
addLeash
从接口复制的说明:ILeashDataAdd leash boolean.- 指定者:
addLeash在接口中ILeashData- 参数:
holder- the holdermaxDistance- the max distance- 返回:
- the boolean
-
addLeash
public boolean addLeash(net.minecraft.world.entity.Entity holder, Double maxDistance, Double elasticDistanceScale) 从接口复制的说明:ILeashDataAdd leash boolean.- 指定者:
addLeash在接口中ILeashData- 参数:
holder- the holdermaxDistance- the max distanceelasticDistanceScale- the elastic distance scale- 返回:
- the boolean
-
addLeash
public boolean addLeash(net.minecraft.world.entity.Entity holder, Double maxDistance, Double elasticDistanceScale, int maxKeepLeashTicks) 从接口复制的说明:ILeashDataAdd leash boolean.- 指定者:
addLeash在接口中ILeashData- 参数:
holder- the holdermaxDistance- the max distanceelasticDistanceScale- the elastic distance scalemaxKeepLeashTicks- the max keep ticks- 返回:
- the boolean
-
addLeash
public boolean addLeash(net.minecraft.world.entity.Entity holder, Double maxDistance, Double elasticDistanceScale, String reserved) 从接口复制的说明:ILeashDataAdd leash boolean.- 指定者:
addLeash在接口中ILeashData- 参数:
holder- the holdermaxDistance- the max distanceelasticDistanceScale- the elastic distance scalereserved- the reserved- 返回:
- the boolean
-
addLeash
public boolean addLeash(net.minecraft.world.entity.Entity holder, Double maxDistance, String reserved) 从接口复制的说明:ILeashDataAdd leash boolean.- 指定者:
addLeash在接口中ILeashData- 参数:
holder- the holdermaxDistance- the max distancereserved- the reserved- 返回:
- the boolean
-
addLeash
public boolean addLeash(net.minecraft.world.entity.Entity holder, Double maxDistance, Double elasticDistanceScale, int maxKeepLeashTicks, String reserved) 从接口复制的说明:ILeashDataAdd leash boolean.- 指定者:
addLeash在接口中ILeashData- 参数:
holder- the holdermaxDistance- the max distanceelasticDistanceScale- the elastic distance scalemaxKeepLeashTicks- the max keep ticksreserved- the reserved- 返回:
- the boolean
-
addLeash
public void addLeash(net.minecraft.world.entity.Entity holder, @NotNull @NotNull LeashInfo leashInfo) 从接口复制的说明:ILeashDataAdd leash.- 指定者:
addLeash在接口中ILeashData- 参数:
holder- the holderleashInfo- the info
-
addDelayedLeash
public void addDelayedLeash(@NotNull @NotNull net.minecraft.world.entity.Entity holder) 从接口复制的说明:ILeashDataAdd delayed leash.- 指定者:
addDelayedLeash在接口中ILeashData- 参数:
holder- the holder player
-
addDelayedLeash
从接口复制的说明:ILeashDataAdd delayed leash.- 指定者:
addDelayedLeash在接口中ILeashData- 参数:
holderUUID- the holder uuid
-
removeDelayedLeash
从接口复制的说明:ILeashDataRemove delayed leash.- 指定者:
removeDelayedLeash在接口中ILeashData- 参数:
onceHolderUUID- the once holder player uuid
-
setMaxDistance
public boolean setMaxDistance(net.minecraft.world.entity.Entity holder, @Nullable @Nullable Double newMaxDistance) 从接口复制的说明:ILeashDataSets max distance.- 指定者:
setMaxDistance在接口中ILeashData- 参数:
holder- the holdernewMaxDistance- the distance- 返回:
- the max distance
-
setMaxDistance
public boolean setMaxDistance(net.minecraft.world.entity.Entity holder, Double distance, String reserved) 从接口复制的说明:ILeashDataSets max distance.- 指定者:
setMaxDistance在接口中ILeashData- 参数:
holder- the holderdistance- the distancereserved- the reserved- 返回:
- the max distance
-
setMaxDistance
public boolean setMaxDistance(net.minecraft.world.entity.Entity holder, @Nullable @Nullable Double newMaxDistance, int newMaxKeepLeashTicks) 从接口复制的说明:ILeashDataSets max distance.- 指定者:
setMaxDistance在接口中ILeashData- 参数:
holder- the holdernewMaxDistance- the distancenewMaxKeepLeashTicks- the max keep ticks- 返回:
- the max distance
-
setMaxDistance
public boolean setMaxDistance(net.minecraft.world.entity.Entity holder, @Nullable @Nullable Double newMaxDistance, int maxKeepTicks, String reserved) 从接口复制的说明:ILeashDataSets max distance.- 指定者:
setMaxDistance在接口中ILeashData- 参数:
holder- the holdernewMaxDistance- the distancemaxKeepTicks- the max keep ticksreserved- the reserved- 返回:
- the max distance
-
setMaxDistance
从接口复制的说明:ILeashDataSets max distance.- 指定者:
setMaxDistance在接口中ILeashData- 参数:
holderUUID- the holder uuidnewMaxDistance- the distance- 返回:
- the max distance
-
setMaxDistance
从接口复制的说明:ILeashDataSets max distance.- 指定者:
setMaxDistance在接口中ILeashData- 参数:
holderUUID- the holder uuidnewMaxDistance- the distancereserved- the reserved- 返回:
- the max distance
-
setMaxDistanceInner
Sets max distance inner.- 参数:
holderUUID- the holder uuidnewMaxDistance- the new max distance
-
setMaxDistance
public boolean setMaxDistance(UUID holderUUID, @Nullable @Nullable Double newMaxDistance, int newMaxKeepLeashTicks) 从接口复制的说明:ILeashDataSets max distance.- 指定者:
setMaxDistance在接口中ILeashData- 参数:
holderUUID- the holder uuidnewMaxDistance- the distancenewMaxKeepLeashTicks- the max keep ticks- 返回:
- the max distance
-
setMaxDistance
public boolean setMaxDistance(UUID holderUUID, @Nullable @Nullable Double newMaxDistance, int maxKeepTicks, String reserved) 从接口复制的说明:ILeashDataSets max distance.- 指定者:
setMaxDistance在接口中ILeashData- 参数:
holderUUID- the holder uuidnewMaxDistance- the distancemaxKeepTicks- the max keep ticksreserved- the reserved- 返回:
- the max distance
-
setMaxDistance
public boolean setMaxDistance(net.minecraft.core.BlockPos knotPos, @Nullable @Nullable Double newMaxDistance) 从接口复制的说明:ILeashDataSets max distance.- 指定者:
setMaxDistance在接口中ILeashData- 参数:
knotPos- the knot posnewMaxDistance- the distance- 返回:
- the max distance
-
setMaxDistance
public boolean setMaxDistance(net.minecraft.core.BlockPos knotPos, Double newMaxDistance, String reserved) 从接口复制的说明:ILeashDataSets max distance.- 指定者:
setMaxDistance在接口中ILeashData- 参数:
knotPos- the knot posnewMaxDistance- the distancereserved- the reserved- 返回:
- the max distance
-
setMaxDistanceInner
public void setMaxDistanceInner(net.minecraft.core.BlockPos knotPos, @Nullable @Nullable Double newMaxDistance) Sets max distance inner.- 参数:
knotPos- the knot posnewMaxDistance- the new max distance
-
setMaxDistance
public boolean setMaxDistance(net.minecraft.core.BlockPos knotPos, @Nullable @Nullable Double newMaxDistance, int newMaxKeepLeashTicks) 从接口复制的说明:ILeashDataSets max distance.- 指定者:
setMaxDistance在接口中ILeashData- 参数:
knotPos- the knot posnewMaxDistance- the distancenewMaxKeepLeashTicks- the max keep ticks- 返回:
- the max distance
-
setMaxDistance
public boolean setMaxDistance(net.minecraft.core.BlockPos knotPos, @Nullable @Nullable Double newMaxDistance, int maxKeepTicks, String reserved) 从接口复制的说明:ILeashDataSets max distance.- 指定者:
setMaxDistance在接口中ILeashData- 参数:
knotPos- the knot posnewMaxDistance- the distancemaxKeepTicks- the max keep ticksreserved- the reserved- 返回:
- the max distance
-
setElasticDistanceScale
public boolean setElasticDistanceScale(net.minecraft.world.entity.Entity holder, @Nullable @Nullable Double scale) 从接口复制的说明:ILeashDataSets elastic distance scale.- 指定者:
setElasticDistanceScale在接口中ILeashData- 参数:
holder- the holderscale- the scale- 返回:
- the elastic distance scale
-
setElasticDistanceScale
从接口复制的说明:ILeashDataSets elastic distance scale.- 指定者:
setElasticDistanceScale在接口中ILeashData- 参数:
holderUUID- the holder uuidscale- the scale- 返回:
- the elastic distance scale
-
setElasticDistanceScaleInner
Sets elastic distance scale inner.- 参数:
holderUUID- the holder uuidscale- the scale
-
setElasticDistanceScale
public boolean setElasticDistanceScale(net.minecraft.core.BlockPos knotPos, @Nullable @Nullable Double scale) 从接口复制的说明:ILeashDataSets elastic distance scale.- 指定者:
setElasticDistanceScale在接口中ILeashData- 参数:
knotPos- the knot posscale- the scale- 返回:
- the elastic distance scale
-
setElasticDistanceScaleInner
public void setElasticDistanceScaleInner(net.minecraft.core.BlockPos knotPos, @Nullable @Nullable Double scale) Sets elastic distance scale inner.- 参数:
knotPos- the knot posscale- the scale
-
setElasticDistanceScale
public boolean setElasticDistanceScale(net.minecraft.world.entity.Entity holder, @Nullable @Nullable Double scale, int newMaxKeepLeashTicks) 从接口复制的说明:ILeashDataSets elastic distance scale.- 指定者:
setElasticDistanceScale在接口中ILeashData- 参数:
holder- the holderscale- the scalenewMaxKeepLeashTicks- the max keep ticks- 返回:
- the elastic distance scale
-
setElasticDistanceScale
public boolean setElasticDistanceScale(net.minecraft.world.entity.Entity holder, @Nullable @Nullable Double scale, int maxKeepTicks, String reserved) 从接口复制的说明:ILeashDataSets elastic distance scale.- 指定者:
setElasticDistanceScale在接口中ILeashData- 参数:
holder- the holderscale- the scalemaxKeepTicks- the max keep ticksreserved- the reserved- 返回:
- the elastic distance scale
-
setElasticDistanceScale
public boolean setElasticDistanceScale(UUID holderUUID, @Nullable @Nullable Double scale, int newMaxKeepLeashTicks) 从接口复制的说明:ILeashDataSets elastic distance scale.- 指定者:
setElasticDistanceScale在接口中ILeashData- 参数:
holderUUID- the holder uuidscale- the scalenewMaxKeepLeashTicks- the max keep ticks- 返回:
- the elastic distance scale
-
setElasticDistanceScale
public boolean setElasticDistanceScale(UUID holderUUID, @Nullable @Nullable Double scale, int maxKeepTicks, String reserved) 从接口复制的说明:ILeashDataSets elastic distance scale.- 指定者:
setElasticDistanceScale在接口中ILeashData- 参数:
holderUUID- the holder uuidscale- the scalemaxKeepTicks- the max keep ticksreserved- the reserved- 返回:
- the elastic distance scale
-
setElasticDistanceScale
public boolean setElasticDistanceScale(net.minecraft.core.BlockPos knotPos, @Nullable @Nullable Double scale, int newMaxKeepLeashTicks) 从接口复制的说明:ILeashDataSets elastic distance scale.- 指定者:
setElasticDistanceScale在接口中ILeashData- 参数:
knotPos- the knot posscale- the scalenewMaxKeepLeashTicks- the max keep ticks- 返回:
- the elastic distance scale
-
setElasticDistanceScale
public boolean setElasticDistanceScale(net.minecraft.core.BlockPos knotPos, @Nullable @Nullable Double scale, int newMaxKeepLeashTicks, String reserved) 从接口复制的说明:ILeashDataSets elastic distance scale.- 指定者:
setElasticDistanceScale在接口中ILeashData- 参数:
knotPos- the knot posscale- the scalenewMaxKeepLeashTicks- the max keep ticksreserved- the reserved- 返回:
- the elastic distance scale
-
applyLeashForcesClientPlayer
public void applyLeashForcesClientPlayer()从接口复制的说明:ILeashDataApply leash forces client player.- 指定者:
applyLeashForcesClientPlayer在接口中ILeashData
-
limitMovement
public net.minecraft.world.phys.Vec3 limitMovement(@NotNull @NotNull net.minecraft.world.phys.Vec3 movement) Limit movement vec 3.- 参数:
movement- the movement- 返回:
- the vec 3
-
applyLeashForces
public void applyLeashForces()计算拴绳拉力(防抖动逻辑)- 指定者:
applyLeashForces在接口中ILeashData
-
removeLeash
public boolean removeLeash(net.minecraft.world.entity.Entity holder) 从接口复制的说明:ILeashDataRemove leash boolean.- 指定者:
removeLeash在接口中ILeashData- 参数:
holder- the holder- 返回:
- the boolean
-
removeLeash
从接口复制的说明:ILeashDataRemove leash boolean.- 指定者:
removeLeash在接口中ILeashData- 参数:
holderUUID- the holder uuid- 返回:
- the boolean
-
removeLeash
public boolean removeLeash(net.minecraft.core.BlockPos knotPos) 从接口复制的说明:ILeashDataRemove leash boolean.- 指定者:
removeLeash在接口中ILeashData- 参数:
knotPos- the knot pos- 返回:
- the boolean
-
removeAllLeashes
public void removeAllLeashes()从接口复制的说明:ILeashDataRemove all leashes.- 指定者:
removeAllLeashes在接口中ILeashData
-
removeAllHolderLeashes
public void removeAllHolderLeashes()从接口复制的说明:ILeashDataRemove all holder leashes.- 指定者:
removeAllHolderLeashes在接口中ILeashData
-
removeAllKnotLeashes
public void removeAllKnotLeashes()从接口复制的说明:ILeashDataRemove all knot leashes.- 指定者:
removeAllKnotLeashes在接口中ILeashData
-
transferLeash
public boolean transferLeash(net.minecraft.world.entity.Entity holder, net.minecraft.world.entity.Entity newHolder) 从接口复制的说明:ILeashDataTransfer leash boolean.- 指定者:
transferLeash在接口中ILeashData- 参数:
holder- the holdernewHolder- the new holder- 返回:
- the boolean
-
transferLeash
public boolean transferLeash(net.minecraft.world.entity.Entity holder, net.minecraft.world.entity.Entity newHolder, String reserved) 从接口复制的说明:ILeashDataTransfer leash boolean.- 指定者:
transferLeash在接口中ILeashData- 参数:
holder- the holdernewHolder- the new holderreserved- the reserved- 返回:
- the boolean
-
transferLeash
从接口复制的说明:ILeashDataTransfer leash boolean.- 指定者:
transferLeash在接口中ILeashData- 参数:
oldHolderUUID- the holder uuidnewHolder- the new holder- 返回:
- the boolean
-
transferLeash
public boolean transferLeash(UUID oldHolderUUID, net.minecraft.world.entity.Entity newHolder, String reserved) 从接口复制的说明:ILeashDataTransfer leash boolean.- 指定者:
transferLeash在接口中ILeashData- 参数:
oldHolderUUID- the holder uuidnewHolder- the new holderreserved- the reserved- 返回:
- the boolean
-
transferLeash
public boolean transferLeash(net.minecraft.core.BlockPos knotPos, net.minecraft.world.entity.Entity newHolder) 从接口复制的说明:ILeashDataTransfer leash boolean.- 指定者:
transferLeash在接口中ILeashData- 参数:
knotPos- the knot posnewHolder- the new holder- 返回:
- the boolean
-
transferLeash
public boolean transferLeash(net.minecraft.core.BlockPos knotPos, net.minecraft.world.entity.Entity newHolder, String reserved) 从接口复制的说明:ILeashDataTransfer leash boolean.- 指定者:
transferLeash在接口中ILeashData- 参数:
knotPos- the knot posnewHolder- the new holderreserved- the reserved- 返回:
- the boolean
-
setMaxKeepTicks
public boolean setMaxKeepTicks(net.minecraft.world.entity.Entity holder, int maxKeepTicks) 从接口复制的说明:ILeashDataSets max keep ticks.- 指定者:
setMaxKeepTicks在接口中ILeashData- 参数:
holder- the holdermaxKeepTicks- the max keep ticks- 返回:
- the max keep ticks
-
setMaxKeepTicks
从接口复制的说明:ILeashDataSets max keep ticks.- 指定者:
setMaxKeepTicks在接口中ILeashData- 参数:
holderUUID- the holder uuidmaxKeepTicks- the max keep ticks- 返回:
- the max keep ticks
-
setMaxKeepTicks
public boolean setMaxKeepTicks(net.minecraft.core.BlockPos knotPos, int maxKeepTicks) 从接口复制的说明:ILeashDataSets max keep ticks.- 指定者:
setMaxKeepTicks在接口中ILeashData- 参数:
knotPos- the knot posmaxKeepTicks- the max keep ticks- 返回:
- the max keep ticks
-
getMaxKeepTicks
public int getMaxKeepTicks(net.minecraft.world.entity.Entity holder) 从接口复制的说明:ILeashDataGets max keep ticks.- 指定者:
getMaxKeepTicks在接口中ILeashData- 参数:
holder- the holder- 返回:
- the max keep ticks
-
getMaxKeepTicks
从接口复制的说明:ILeashDataGets max keep ticks.- 指定者:
getMaxKeepTicks在接口中ILeashData- 参数:
holderUUID- the holder uuid- 返回:
- the max keep ticks
-
getMaxKeepTicks
public int getMaxKeepTicks(net.minecraft.core.BlockPos knotPos) 从接口复制的说明:ILeashDataGets max keep ticks.- 指定者:
getMaxKeepTicks在接口中ILeashData- 参数:
knotPos- the knot pos- 返回:
- the max keep ticks
-
hasLeash
public boolean hasLeash()从接口复制的说明:ILeashDataHas leash boolean.- 指定者:
hasLeash在接口中ILeashData- 返回:
- the boolean
-
hasKnotLeash
public boolean hasKnotLeash()从接口复制的说明:ILeashDataHas knot leash boolean.- 指定者:
hasKnotLeash在接口中ILeashData- 返回:
- the boolean
-
hasHolderLeash
public boolean hasHolderLeash()从接口复制的说明:ILeashDataHas holder leash boolean.- 指定者:
hasHolderLeash在接口中ILeashData- 返回:
- the boolean
-
isLeashable
public static boolean isLeashable(net.minecraft.world.entity.Entity entity) Is leashable boolean.- 参数:
entity- the entity- 返回:
- the boolean
-
getAllLeashes
从接口复制的说明:ILeashDataGets all leashes.- 指定者:
getAllLeashes在接口中ILeashData- 返回:
- the all leashes
-
getAllHolderLeashes
从接口复制的说明:ILeashDataGets all leashes.- 指定者:
getAllHolderLeashes在接口中ILeashData- 返回:
- the all leashes
-
getAllKnotLeashes
从接口复制的说明:ILeashDataGets all leashes.- 指定者:
getAllKnotLeashes在接口中ILeashData- 返回:
- the all leashes
-
isLeashedBy
public boolean isLeashedBy(net.minecraft.world.entity.Entity holder) 从接口复制的说明:ILeashDataIs leashed by boolean.- 指定者:
isLeashedBy在接口中ILeashData- 参数:
holder- the holder- 返回:
- the boolean
-
isLeashedBy
从接口复制的说明:ILeashDataIs leashed by boolean.- 指定者:
isLeashedBy在接口中ILeashData- 参数:
holderUUID- the holder uuid- 返回:
- the boolean
-
isLeashedBy
public boolean isLeashedBy(net.minecraft.core.BlockPos knotPos) 从接口复制的说明:ILeashDataIs leashed by boolean.- 指定者:
isLeashedBy在接口中ILeashData- 参数:
knotPos- the knot pos- 返回:
- the boolean
-
isInDelayedLeash
从接口复制的说明:ILeashDataIs in delayed leash boolean.- 指定者:
isInDelayedLeash在接口中ILeashData- 参数:
holderUUID- the holder uuid- 返回:
- the boolean
-
getLeashInfo
从接口复制的说明:ILeashDataGets leash info.- 指定者:
getLeashInfo在接口中ILeashData- 参数:
holder- the holder- 返回:
- the leash info
-
getLeashInfo
从接口复制的说明:ILeashDataGets leash info.- 指定者:
getLeashInfo在接口中ILeashData- 参数:
holderUUID- the holder uuid- 返回:
- the leash info
-
getLeashInfo
从接口复制的说明:ILeashDataGets leash info.- 指定者:
getLeashInfo在接口中ILeashData- 参数:
knotPos- the knot pos- 返回:
- the leash info
-
serializeNBT
public net.minecraft.nbt.CompoundTag serializeNBT()- 指定者:
serializeNBT在接口中net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
-
deserializeNBT
public void deserializeNBT(@NotNull @NotNull net.minecraft.nbt.CompoundTag nbt) - 指定者:
deserializeNBT在接口中net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
-
canBeLeashed
public boolean canBeLeashed()从接口复制的说明:ILeashDataCan be leashed boolean.- 指定者:
canBeLeashed在接口中ILeashData- 返回:
- the boolean
-
occupyLeash
从接口复制的说明:ILeashData抢占位(已离线玩家)。 用于解决玩家下线后所持有对象会移除持有者的问题(实际上是占用个弱集合)- 指定者:
occupyLeash在接口中ILeashData- 返回:
- the optional
-
canBeAttachedTo
public boolean canBeAttachedTo(net.minecraft.world.entity.Entity pEntity) 从接口复制的说明:ILeashDataCan be attached to boolean.- 指定者:
canBeAttachedTo在接口中ILeashData- 参数:
pEntity- the entity- 返回:
- the boolean
-