java.lang.Object
top.r3944realms.superleadrope.content.capability.impi.LeashDataImpl
所有已实现的接口:
net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>, ILeashData

public class LeashDataImpl extends Object implements 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 立即断裂
  • 构造器详细资料

    • LeashDataImpl

      public LeashDataImpl(net.minecraft.world.entity.Entity entity)
      Instantiates a new Leash data.
      参数:
      entity - the entity
  • 方法详细资料

    • markForSync

      public void markForSync()
      从接口复制的说明: ILeashData
      Mark 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()
      从接口复制的说明: ILeashData
      Self entity.
      指定者:
      self 在接口中 ILeashData
      返回:
      the entity
    • getStaticMaxDistance

      @Nullable public @Nullable Double getStaticMaxDistance()
      从接口复制的说明: ILeashData
      Gets static max distance.
      指定者:
      getStaticMaxDistance 在接口中 ILeashData
      返回:
      the static max distance
    • setStaticMaxDistance

      public void setStaticMaxDistance(@Nullable @Nullable Double distance)
      从接口复制的说明: ILeashData
      Sets static max distance.
      指定者:
      setStaticMaxDistance 在接口中 ILeashData
      参数:
      distance - the distance
    • getDefaultMaxDistance

      public double getDefaultMaxDistance()
      从接口复制的说明: ILeashData
      Gets default max distance.
      指定者:
      getDefaultMaxDistance 在接口中 ILeashData
      返回:
      the default max distance
    • getCurrentMaxDistance

      public double getCurrentMaxDistance()
      从接口复制的说明: ILeashData
      Gets current max distance.
      指定者:
      getCurrentMaxDistance 在接口中 ILeashData
      返回:
      the current max distance
    • updateAllMaxDistance

      public void updateAllMaxDistance()
      从接口复制的说明: ILeashData
      Update all max distance.
      指定者:
      updateAllMaxDistance 在接口中 ILeashData
    • getStaticElasticDistanceScale

      @Nullable public @Nullable Double getStaticElasticDistanceScale()
      从接口复制的说明: ILeashData
      Gets static elastic distance scale.
      指定者:
      getStaticElasticDistanceScale 在接口中 ILeashData
      返回:
      the static elastic distance scale
    • setStaticElasticDistanceScale

      public void setStaticElasticDistanceScale(@Nullable @Nullable Double scale)
      从接口复制的说明: ILeashData
      Sets static elastic distance scale.
      指定者:
      setStaticElasticDistanceScale 在接口中 ILeashData
      参数:
      scale - the distance
    • getDefaultElasticDistanceScale

      public double getDefaultElasticDistanceScale()
      从接口复制的说明: ILeashData
      Gets default elastic distance scale.
      指定者:
      getDefaultElasticDistanceScale 在接口中 ILeashData
      返回:
      the default elastic distance scale
    • getCurrentElasticDistanceScale

      public double getCurrentElasticDistanceScale()
      从接口复制的说明: ILeashData
      Gets current elastic distance scale.
      指定者:
      getCurrentElasticDistanceScale 在接口中 ILeashData
      返回:
      the current elastic distance scale
    • updateAllElasticDistanceScale

      public void updateAllElasticDistanceScale()
      从接口复制的说明: ILeashData
      Update all elastic distance scale.
      指定者:
      updateAllElasticDistanceScale 在接口中 ILeashData
    • addLeash

      public boolean addLeash(net.minecraft.world.entity.Entity holder)
      从接口复制的说明: ILeashData
      Add leash boolean.
      指定者:
      addLeash 在接口中 ILeashData
      参数:
      holder - the holder
      返回:
      the boolean
    • addLeash

      public boolean addLeash(net.minecraft.world.entity.Entity holder, String reserved)
      从接口复制的说明: ILeashData
      Add leash boolean.
      指定者:
      addLeash 在接口中 ILeashData
      参数:
      holder - the holder
      reserved - the reserved
      返回:
      the boolean
    • addLeash

      public boolean addLeash(net.minecraft.world.entity.Entity holder, Double maxDistance)
      从接口复制的说明: ILeashData
      Add leash boolean.
      指定者:
      addLeash 在接口中 ILeashData
      参数:
      holder - the holder
      maxDistance - the max distance
      返回:
      the boolean
    • addLeash

      public boolean addLeash(net.minecraft.world.entity.Entity holder, Double maxDistance, Double elasticDistanceScale)
      从接口复制的说明: ILeashData
      Add leash boolean.
      指定者:
      addLeash 在接口中 ILeashData
      参数:
      holder - the holder
      maxDistance - the max distance
      elasticDistanceScale - the elastic distance scale
      返回:
      the boolean
    • addLeash

      public boolean addLeash(net.minecraft.world.entity.Entity holder, Double maxDistance, Double elasticDistanceScale, int maxKeepLeashTicks)
      从接口复制的说明: ILeashData
      Add leash boolean.
      指定者:
      addLeash 在接口中 ILeashData
      参数:
      holder - the holder
      maxDistance - the max distance
      elasticDistanceScale - the elastic distance scale
      maxKeepLeashTicks - the max keep ticks
      返回:
      the boolean
    • addLeash

      public boolean addLeash(net.minecraft.world.entity.Entity holder, Double maxDistance, Double elasticDistanceScale, String reserved)
      从接口复制的说明: ILeashData
      Add leash boolean.
      指定者:
      addLeash 在接口中 ILeashData
      参数:
      holder - the holder
      maxDistance - the max distance
      elasticDistanceScale - the elastic distance scale
      reserved - the reserved
      返回:
      the boolean
    • addLeash

      public boolean addLeash(net.minecraft.world.entity.Entity holder, Double maxDistance, String reserved)
      从接口复制的说明: ILeashData
      Add leash boolean.
      指定者:
      addLeash 在接口中 ILeashData
      参数:
      holder - the holder
      maxDistance - the max distance
      reserved - the reserved
      返回:
      the boolean
    • addLeash

      public boolean addLeash(net.minecraft.world.entity.Entity holder, Double maxDistance, Double elasticDistanceScale, int maxKeepLeashTicks, String reserved)
      从接口复制的说明: ILeashData
      Add leash boolean.
      指定者:
      addLeash 在接口中 ILeashData
      参数:
      holder - the holder
      maxDistance - the max distance
      elasticDistanceScale - the elastic distance scale
      maxKeepLeashTicks - the max keep ticks
      reserved - the reserved
      返回:
      the boolean
    • addLeash

      public void addLeash(net.minecraft.world.entity.Entity holder, @NotNull @NotNull LeashInfo leashInfo)
      从接口复制的说明: ILeashData
      Add leash.
      指定者:
      addLeash 在接口中 ILeashData
      参数:
      holder - the holder
      leashInfo - the info
    • addDelayedLeash

      public void addDelayedLeash(@NotNull @NotNull net.minecraft.world.entity.Entity holder)
      从接口复制的说明: ILeashData
      Add delayed leash.
      指定者:
      addDelayedLeash 在接口中 ILeashData
      参数:
      holder - the holder player
    • addDelayedLeash

      public void addDelayedLeash(@NotNull @NotNull UUID holderUUID)
      从接口复制的说明: ILeashData
      Add delayed leash.
      指定者:
      addDelayedLeash 在接口中 ILeashData
      参数:
      holderUUID - the holder uuid
    • removeDelayedLeash

      public void removeDelayedLeash(UUID onceHolderUUID)
      从接口复制的说明: ILeashData
      Remove delayed leash.
      指定者:
      removeDelayedLeash 在接口中 ILeashData
      参数:
      onceHolderUUID - the once holder player uuid
    • setMaxDistance

      public boolean setMaxDistance(net.minecraft.world.entity.Entity holder, @Nullable @Nullable Double newMaxDistance)
      从接口复制的说明: ILeashData
      Sets max distance.
      指定者:
      setMaxDistance 在接口中 ILeashData
      参数:
      holder - the holder
      newMaxDistance - the distance
      返回:
      the max distance
    • setMaxDistance

      public boolean setMaxDistance(net.minecraft.world.entity.Entity holder, Double distance, String reserved)
      从接口复制的说明: ILeashData
      Sets max distance.
      指定者:
      setMaxDistance 在接口中 ILeashData
      参数:
      holder - the holder
      distance - the distance
      reserved - the reserved
      返回:
      the max distance
    • setMaxDistance

      public boolean setMaxDistance(net.minecraft.world.entity.Entity holder, @Nullable @Nullable Double newMaxDistance, int newMaxKeepLeashTicks)
      从接口复制的说明: ILeashData
      Sets max distance.
      指定者:
      setMaxDistance 在接口中 ILeashData
      参数:
      holder - the holder
      newMaxDistance - the distance
      newMaxKeepLeashTicks - 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)
      从接口复制的说明: ILeashData
      Sets max distance.
      指定者:
      setMaxDistance 在接口中 ILeashData
      参数:
      holder - the holder
      newMaxDistance - the distance
      maxKeepTicks - the max keep ticks
      reserved - the reserved
      返回:
      the max distance
    • setMaxDistance

      public boolean setMaxDistance(UUID holderUUID, @Nullable @Nullable Double newMaxDistance)
      从接口复制的说明: ILeashData
      Sets max distance.
      指定者:
      setMaxDistance 在接口中 ILeashData
      参数:
      holderUUID - the holder uuid
      newMaxDistance - the distance
      返回:
      the max distance
    • setMaxDistance

      public boolean setMaxDistance(UUID holderUUID, Double newMaxDistance, String reserved)
      从接口复制的说明: ILeashData
      Sets max distance.
      指定者:
      setMaxDistance 在接口中 ILeashData
      参数:
      holderUUID - the holder uuid
      newMaxDistance - the distance
      reserved - the reserved
      返回:
      the max distance
    • setMaxDistanceInner

      public void setMaxDistanceInner(UUID holderUUID, @Nullable @Nullable Double newMaxDistance)
      Sets max distance inner.
      参数:
      holderUUID - the holder uuid
      newMaxDistance - the new max distance
    • setMaxDistance

      public boolean setMaxDistance(UUID holderUUID, @Nullable @Nullable Double newMaxDistance, int newMaxKeepLeashTicks)
      从接口复制的说明: ILeashData
      Sets max distance.
      指定者:
      setMaxDistance 在接口中 ILeashData
      参数:
      holderUUID - the holder uuid
      newMaxDistance - the distance
      newMaxKeepLeashTicks - the max keep ticks
      返回:
      the max distance
    • setMaxDistance

      public boolean setMaxDistance(UUID holderUUID, @Nullable @Nullable Double newMaxDistance, int maxKeepTicks, String reserved)
      从接口复制的说明: ILeashData
      Sets max distance.
      指定者:
      setMaxDistance 在接口中 ILeashData
      参数:
      holderUUID - the holder uuid
      newMaxDistance - the distance
      maxKeepTicks - the max keep ticks
      reserved - the reserved
      返回:
      the max distance
    • setMaxDistance

      public boolean setMaxDistance(net.minecraft.core.BlockPos knotPos, @Nullable @Nullable Double newMaxDistance)
      从接口复制的说明: ILeashData
      Sets max distance.
      指定者:
      setMaxDistance 在接口中 ILeashData
      参数:
      knotPos - the knot pos
      newMaxDistance - the distance
      返回:
      the max distance
    • setMaxDistance

      public boolean setMaxDistance(net.minecraft.core.BlockPos knotPos, Double newMaxDistance, String reserved)
      从接口复制的说明: ILeashData
      Sets max distance.
      指定者:
      setMaxDistance 在接口中 ILeashData
      参数:
      knotPos - the knot pos
      newMaxDistance - the distance
      reserved - 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 pos
      newMaxDistance - the new max distance
    • setMaxDistance

      public boolean setMaxDistance(net.minecraft.core.BlockPos knotPos, @Nullable @Nullable Double newMaxDistance, int newMaxKeepLeashTicks)
      从接口复制的说明: ILeashData
      Sets max distance.
      指定者:
      setMaxDistance 在接口中 ILeashData
      参数:
      knotPos - the knot pos
      newMaxDistance - the distance
      newMaxKeepLeashTicks - the max keep ticks
      返回:
      the max distance
    • setMaxDistance

      public boolean setMaxDistance(net.minecraft.core.BlockPos knotPos, @Nullable @Nullable Double newMaxDistance, int maxKeepTicks, String reserved)
      从接口复制的说明: ILeashData
      Sets max distance.
      指定者:
      setMaxDistance 在接口中 ILeashData
      参数:
      knotPos - the knot pos
      newMaxDistance - the distance
      maxKeepTicks - the max keep ticks
      reserved - the reserved
      返回:
      the max distance
    • setElasticDistanceScale

      public boolean setElasticDistanceScale(net.minecraft.world.entity.Entity holder, @Nullable @Nullable Double scale)
      从接口复制的说明: ILeashData
      Sets elastic distance scale.
      指定者:
      setElasticDistanceScale 在接口中 ILeashData
      参数:
      holder - the holder
      scale - the scale
      返回:
      the elastic distance scale
    • setElasticDistanceScale

      public boolean setElasticDistanceScale(UUID holderUUID, @Nullable @Nullable Double scale)
      从接口复制的说明: ILeashData
      Sets elastic distance scale.
      指定者:
      setElasticDistanceScale 在接口中 ILeashData
      参数:
      holderUUID - the holder uuid
      scale - the scale
      返回:
      the elastic distance scale
    • setElasticDistanceScaleInner

      public void setElasticDistanceScaleInner(UUID holderUUID, @Nullable @Nullable Double scale)
      Sets elastic distance scale inner.
      参数:
      holderUUID - the holder uuid
      scale - the scale
    • setElasticDistanceScale

      public boolean setElasticDistanceScale(net.minecraft.core.BlockPos knotPos, @Nullable @Nullable Double scale)
      从接口复制的说明: ILeashData
      Sets elastic distance scale.
      指定者:
      setElasticDistanceScale 在接口中 ILeashData
      参数:
      knotPos - the knot pos
      scale - 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 pos
      scale - the scale
    • setElasticDistanceScale

      public boolean setElasticDistanceScale(net.minecraft.world.entity.Entity holder, @Nullable @Nullable Double scale, int newMaxKeepLeashTicks)
      从接口复制的说明: ILeashData
      Sets elastic distance scale.
      指定者:
      setElasticDistanceScale 在接口中 ILeashData
      参数:
      holder - the holder
      scale - the scale
      newMaxKeepLeashTicks - 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)
      从接口复制的说明: ILeashData
      Sets elastic distance scale.
      指定者:
      setElasticDistanceScale 在接口中 ILeashData
      参数:
      holder - the holder
      scale - the scale
      maxKeepTicks - the max keep ticks
      reserved - the reserved
      返回:
      the elastic distance scale
    • setElasticDistanceScale

      public boolean setElasticDistanceScale(UUID holderUUID, @Nullable @Nullable Double scale, int newMaxKeepLeashTicks)
      从接口复制的说明: ILeashData
      Sets elastic distance scale.
      指定者:
      setElasticDistanceScale 在接口中 ILeashData
      参数:
      holderUUID - the holder uuid
      scale - the scale
      newMaxKeepLeashTicks - the max keep ticks
      返回:
      the elastic distance scale
    • setElasticDistanceScale

      public boolean setElasticDistanceScale(UUID holderUUID, @Nullable @Nullable Double scale, int maxKeepTicks, String reserved)
      从接口复制的说明: ILeashData
      Sets elastic distance scale.
      指定者:
      setElasticDistanceScale 在接口中 ILeashData
      参数:
      holderUUID - the holder uuid
      scale - the scale
      maxKeepTicks - the max keep ticks
      reserved - the reserved
      返回:
      the elastic distance scale
    • setElasticDistanceScale

      public boolean setElasticDistanceScale(net.minecraft.core.BlockPos knotPos, @Nullable @Nullable Double scale, int newMaxKeepLeashTicks)
      从接口复制的说明: ILeashData
      Sets elastic distance scale.
      指定者:
      setElasticDistanceScale 在接口中 ILeashData
      参数:
      knotPos - the knot pos
      scale - the scale
      newMaxKeepLeashTicks - 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)
      从接口复制的说明: ILeashData
      Sets elastic distance scale.
      指定者:
      setElasticDistanceScale 在接口中 ILeashData
      参数:
      knotPos - the knot pos
      scale - the scale
      newMaxKeepLeashTicks - the max keep ticks
      reserved - the reserved
      返回:
      the elastic distance scale
    • applyLeashForcesClientPlayer

      public void applyLeashForcesClientPlayer()
      从接口复制的说明: ILeashData
      Apply 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)
      从接口复制的说明: ILeashData
      Remove leash boolean.
      指定者:
      removeLeash 在接口中 ILeashData
      参数:
      holder - the holder
      返回:
      the boolean
    • removeLeash

      public boolean removeLeash(UUID holderUUID)
      从接口复制的说明: ILeashData
      Remove leash boolean.
      指定者:
      removeLeash 在接口中 ILeashData
      参数:
      holderUUID - the holder uuid
      返回:
      the boolean
    • removeLeash

      public boolean removeLeash(net.minecraft.core.BlockPos knotPos)
      从接口复制的说明: ILeashData
      Remove leash boolean.
      指定者:
      removeLeash 在接口中 ILeashData
      参数:
      knotPos - the knot pos
      返回:
      the boolean
    • removeAllLeashes

      public void removeAllLeashes()
      从接口复制的说明: ILeashData
      Remove all leashes.
      指定者:
      removeAllLeashes 在接口中 ILeashData
    • removeAllHolderLeashes

      public void removeAllHolderLeashes()
      从接口复制的说明: ILeashData
      Remove all holder leashes.
      指定者:
      removeAllHolderLeashes 在接口中 ILeashData
    • removeAllKnotLeashes

      public void removeAllKnotLeashes()
      从接口复制的说明: ILeashData
      Remove all knot leashes.
      指定者:
      removeAllKnotLeashes 在接口中 ILeashData
    • transferLeash

      public boolean transferLeash(net.minecraft.world.entity.Entity holder, net.minecraft.world.entity.Entity newHolder)
      从接口复制的说明: ILeashData
      Transfer leash boolean.
      指定者:
      transferLeash 在接口中 ILeashData
      参数:
      holder - the holder
      newHolder - the new holder
      返回:
      the boolean
    • transferLeash

      public boolean transferLeash(net.minecraft.world.entity.Entity holder, net.minecraft.world.entity.Entity newHolder, String reserved)
      从接口复制的说明: ILeashData
      Transfer leash boolean.
      指定者:
      transferLeash 在接口中 ILeashData
      参数:
      holder - the holder
      newHolder - the new holder
      reserved - the reserved
      返回:
      the boolean
    • transferLeash

      public boolean transferLeash(UUID oldHolderUUID, net.minecraft.world.entity.Entity newHolder)
      从接口复制的说明: ILeashData
      Transfer leash boolean.
      指定者:
      transferLeash 在接口中 ILeashData
      参数:
      oldHolderUUID - the holder uuid
      newHolder - the new holder
      返回:
      the boolean
    • transferLeash

      public boolean transferLeash(UUID oldHolderUUID, net.minecraft.world.entity.Entity newHolder, String reserved)
      从接口复制的说明: ILeashData
      Transfer leash boolean.
      指定者:
      transferLeash 在接口中 ILeashData
      参数:
      oldHolderUUID - the holder uuid
      newHolder - the new holder
      reserved - the reserved
      返回:
      the boolean
    • transferLeash

      public boolean transferLeash(net.minecraft.core.BlockPos knotPos, net.minecraft.world.entity.Entity newHolder)
      从接口复制的说明: ILeashData
      Transfer leash boolean.
      指定者:
      transferLeash 在接口中 ILeashData
      参数:
      knotPos - the knot pos
      newHolder - the new holder
      返回:
      the boolean
    • transferLeash

      public boolean transferLeash(net.minecraft.core.BlockPos knotPos, net.minecraft.world.entity.Entity newHolder, String reserved)
      从接口复制的说明: ILeashData
      Transfer leash boolean.
      指定者:
      transferLeash 在接口中 ILeashData
      参数:
      knotPos - the knot pos
      newHolder - the new holder
      reserved - the reserved
      返回:
      the boolean
    • setMaxKeepTicks

      public boolean setMaxKeepTicks(net.minecraft.world.entity.Entity holder, int maxKeepTicks)
      从接口复制的说明: ILeashData
      Sets max keep ticks.
      指定者:
      setMaxKeepTicks 在接口中 ILeashData
      参数:
      holder - the holder
      maxKeepTicks - the max keep ticks
      返回:
      the max keep ticks
    • setMaxKeepTicks

      public boolean setMaxKeepTicks(UUID holderUUID, int maxKeepTicks)
      从接口复制的说明: ILeashData
      Sets max keep ticks.
      指定者:
      setMaxKeepTicks 在接口中 ILeashData
      参数:
      holderUUID - the holder uuid
      maxKeepTicks - the max keep ticks
      返回:
      the max keep ticks
    • setMaxKeepTicks

      public boolean setMaxKeepTicks(net.minecraft.core.BlockPos knotPos, int maxKeepTicks)
      从接口复制的说明: ILeashData
      Sets max keep ticks.
      指定者:
      setMaxKeepTicks 在接口中 ILeashData
      参数:
      knotPos - the knot pos
      maxKeepTicks - the max keep ticks
      返回:
      the max keep ticks
    • getMaxKeepTicks

      public int getMaxKeepTicks(net.minecraft.world.entity.Entity holder)
      从接口复制的说明: ILeashData
      Gets max keep ticks.
      指定者:
      getMaxKeepTicks 在接口中 ILeashData
      参数:
      holder - the holder
      返回:
      the max keep ticks
    • getMaxKeepTicks

      public int getMaxKeepTicks(UUID holderUUID)
      从接口复制的说明: ILeashData
      Gets max keep ticks.
      指定者:
      getMaxKeepTicks 在接口中 ILeashData
      参数:
      holderUUID - the holder uuid
      返回:
      the max keep ticks
    • getMaxKeepTicks

      public int getMaxKeepTicks(net.minecraft.core.BlockPos knotPos)
      从接口复制的说明: ILeashData
      Gets max keep ticks.
      指定者:
      getMaxKeepTicks 在接口中 ILeashData
      参数:
      knotPos - the knot pos
      返回:
      the max keep ticks
    • hasLeash

      public boolean hasLeash()
      从接口复制的说明: ILeashData
      Has leash boolean.
      指定者:
      hasLeash 在接口中 ILeashData
      返回:
      the boolean
    • hasKnotLeash

      public boolean hasKnotLeash()
      从接口复制的说明: ILeashData
      Has knot leash boolean.
      指定者:
      hasKnotLeash 在接口中 ILeashData
      返回:
      the boolean
    • hasHolderLeash

      public boolean hasHolderLeash()
      从接口复制的说明: ILeashData
      Has 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

      public Collection<LeashInfo> getAllLeashes()
      从接口复制的说明: ILeashData
      Gets all leashes.
      指定者:
      getAllLeashes 在接口中 ILeashData
      返回:
      the all leashes
    • getAllHolderLeashes

      public Collection<LeashInfo> getAllHolderLeashes()
      从接口复制的说明: ILeashData
      Gets all leashes.
      指定者:
      getAllHolderLeashes 在接口中 ILeashData
      返回:
      the all leashes
    • getAllKnotLeashes

      public Collection<LeashInfo> getAllKnotLeashes()
      从接口复制的说明: ILeashData
      Gets all leashes.
      指定者:
      getAllKnotLeashes 在接口中 ILeashData
      返回:
      the all leashes
    • isLeashedBy

      public boolean isLeashedBy(net.minecraft.world.entity.Entity holder)
      从接口复制的说明: ILeashData
      Is leashed by boolean.
      指定者:
      isLeashedBy 在接口中 ILeashData
      参数:
      holder - the holder
      返回:
      the boolean
    • isLeashedBy

      public boolean isLeashedBy(UUID holderUUID)
      从接口复制的说明: ILeashData
      Is leashed by boolean.
      指定者:
      isLeashedBy 在接口中 ILeashData
      参数:
      holderUUID - the holder uuid
      返回:
      the boolean
    • isLeashedBy

      public boolean isLeashedBy(net.minecraft.core.BlockPos knotPos)
      从接口复制的说明: ILeashData
      Is leashed by boolean.
      指定者:
      isLeashedBy 在接口中 ILeashData
      参数:
      knotPos - the knot pos
      返回:
      the boolean
    • isInDelayedLeash

      public boolean isInDelayedLeash(UUID holderUUID)
      从接口复制的说明: ILeashData
      Is in delayed leash boolean.
      指定者:
      isInDelayedLeash 在接口中 ILeashData
      参数:
      holderUUID - the holder uuid
      返回:
      the boolean
    • getLeashInfo

      public Optional<LeashInfo> getLeashInfo(net.minecraft.world.entity.Entity holder)
      从接口复制的说明: ILeashData
      Gets leash info.
      指定者:
      getLeashInfo 在接口中 ILeashData
      参数:
      holder - the holder
      返回:
      the leash info
    • getLeashInfo

      public Optional<LeashInfo> getLeashInfo(UUID holderUUID)
      从接口复制的说明: ILeashData
      Gets leash info.
      指定者:
      getLeashInfo 在接口中 ILeashData
      参数:
      holderUUID - the holder uuid
      返回:
      the leash info
    • getLeashInfo

      public Optional<LeashInfo> getLeashInfo(net.minecraft.core.BlockPos knotPos)
      从接口复制的说明: ILeashData
      Gets 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()
      从接口复制的说明: ILeashData
      Can be leashed boolean.
      指定者:
      canBeLeashed 在接口中 ILeashData
      返回:
      the boolean
    • occupyLeash

      public Optional<UUID> occupyLeash()
      从接口复制的说明: ILeashData
      抢占位(已离线玩家)。 用于解决玩家下线后所持有对象会移除持有者的问题(实际上是占用个弱集合)
      指定者:
      occupyLeash 在接口中 ILeashData
      返回:
      the optional
    • canBeAttachedTo

      public boolean canBeAttachedTo(net.minecraft.world.entity.Entity pEntity)
      从接口复制的说明: ILeashData
      Can be attached to boolean.
      指定者:
      canBeAttachedTo 在接口中 ILeashData
      参数:
      pEntity - the entity
      返回:
      the boolean