接口 ILeashState

所有超级接口:
net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
所有已知实现类:
LeashStateImpl

public interface ILeashState extends net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
Capability interface for managing leash states of entities and knots.
  • 方法详细资料

    • self

      net.minecraft.world.entity.Entity self()
      Self entity.
      返回:
      the entity
    • hasLeashState

      boolean hasLeashState()
      Has leash state boolean.
      返回:
      the boolean
    • getHolderLeashStates

      Map<UUID,ILeashState.LeashState> getHolderLeashStates()
      Gets holder leash states.
      返回:
      the holder leash states
    • getKnotLeashStates

      Map<net.minecraft.core.BlockPos,ILeashState.LeashState> getKnotLeashStates()
      Gets knot leash states.
      返回:
      the knot leash states
    • getLeashState

      Optional<ILeashState.LeashState> getLeashState(net.minecraft.world.entity.Entity entity)
      Gets leash state.
      参数:
      entity - the entity
      返回:
      the leash state
    • getLeashState

      Optional<ILeashState.LeashState> getLeashState(UUID uuid)
      Gets leash state.
      参数:
      uuid - the uuid
      返回:
      the leash state
    • getLeashState

      Optional<ILeashState.LeashState> getLeashState(net.minecraft.core.BlockPos pos)
      Gets leash state.
      参数:
      pos - the pos
      返回:
      the leash state
    • getHolderLocationOffset

      Optional<net.minecraft.world.phys.Vec3> getHolderLocationOffset(net.minecraft.world.entity.Entity entity)
      Gets holder location offset.
      参数:
      entity - the entity
      返回:
      the holder location offset
    • getHolderLocationOffset

      Optional<net.minecraft.world.phys.Vec3> getHolderLocationOffset(UUID uuid)
      Gets holder location offset.
      参数:
      uuid - the uuid
      返回:
      the holder location offset
    • getHolderLocationOffset

      Optional<net.minecraft.world.phys.Vec3> getHolderLocationOffset(net.minecraft.core.BlockPos pos)
      Gets holder location offset.
      参数:
      pos - the pos
      返回:
      the holder location offset
    • getLeashApplyEntityLocationOffset

      Optional<net.minecraft.world.phys.Vec3> getLeashApplyEntityLocationOffset()
      Gets leash apply entity location offset.
      返回:
      the leash apply entity location offset
    • getDefaultLeashApplyEntityLocationOffset

      net.minecraft.world.phys.Vec3 getDefaultLeashApplyEntityLocationOffset()
      Gets default leash apply entity location offset.
      返回:
      the default leash apply entity location offset
    • resetAllLeashApplyEntityLocationsOffset

      void resetAllLeashApplyEntityLocationsOffset()
      Reset all leash apply entity locations offset.
    • resetAllLeashHolderLocationsOffset

      void resetAllLeashHolderLocationsOffset()
      Reset all leash holder locations offset.
    • resetLeashHolderLocationOffset

      void resetLeashHolderLocationOffset(net.minecraft.world.entity.Entity holder)
      Reset leash holder location offset.
      参数:
      holder - the holder
    • resetLeashHolderLocationOffset

      void resetLeashHolderLocationOffset(UUID holderUUID)
      Reset leash holder location offset.
      参数:
      holderUUID - the holder uuid
    • resetLeashHolderLocationOffset

      void resetLeashHolderLocationOffset(net.minecraft.core.BlockPos knotPos)
      Reset leash holder location offset.
      参数:
      knotPos - the knot pos
    • setLeashHolderLocationOffset

      void setLeashHolderLocationOffset(net.minecraft.world.entity.Entity holder, @Nullable @Nullable net.minecraft.world.phys.Vec3 offset)
      Sets leash holder location offset.
      参数:
      holder - the holder
      offset - the offset
    • setLeashHolderLocationOffset

      void setLeashHolderLocationOffset(UUID holderUUID, @Nullable @Nullable net.minecraft.world.phys.Vec3 offset)
      Sets leash holder location offset.
      参数:
      holderUUID - the holder uuid
      offset - the offset
    • setLeashHolderLocationOffset

      void setLeashHolderLocationOffset(net.minecraft.core.BlockPos knotPos, @Nullable @Nullable net.minecraft.world.phys.Vec3 offset)
      Sets leash holder location offset.
      参数:
      knotPos - the knot pos
      offset - the offset
    • setLeashApplyEntityLocationOffset

      void setLeashApplyEntityLocationOffset(net.minecraft.world.phys.Vec3 offset)
      Sets leash apply entity location offset.
      参数:
      offset - the offset
    • addLeashHolderLocationOffset

      void addLeashHolderLocationOffset(net.minecraft.world.entity.Entity holder, net.minecraft.world.phys.Vec3 offset)
      Add leash holder location offset.
      参数:
      holder - the holder
      offset - the offset
    • addLeashHolderLocationOffset

      void addLeashHolderLocationOffset(UUID holderUUID, net.minecraft.world.phys.Vec3 offset)
      Add leash holder location offset.
      参数:
      holderUUID - the holder uuid
      offset - the offset
    • addLeashHolderLocationOffset

      void addLeashHolderLocationOffset(net.minecraft.core.BlockPos knotPos, net.minecraft.world.phys.Vec3 offset)
      Add leash holder location offset.
      参数:
      knotPos - the knot pos
      offset - the offset
    • addLeashApplyEntityLocationOffset

      void addLeashApplyEntityLocationOffset(net.minecraft.world.phys.Vec3 offset)
      Add leash apply entity location offset.
      参数:
      offset - the offset
    • removeLeashHolderLocationOffset

      void removeLeashHolderLocationOffset(net.minecraft.world.entity.Entity holder)
      Remove leash holder location offset.
      参数:
      holder - the holder
    • removeLeashHolderLocationOffset

      void removeLeashHolderLocationOffset(UUID holderUUID)
      Remove leash holder location offset.
      参数:
      holderUUID - the holder uuid
    • removeLeashHolderLocationOffset

      void removeLeashHolderLocationOffset(net.minecraft.core.BlockPos knotPos)
      Remove leash holder location offset.
      参数:
      knotPos - the knot pos
    • removeAllLeashHolderLocationOffset

      void removeAllLeashHolderLocationOffset()
      Remove all leash holder location offset.
    • removeAllLeashHolderUUIDLocationOffset

      void removeAllLeashHolderUUIDLocationOffset()
      Remove all leash holder uuid location offset.
    • removeAllLeashHolderBlockPosLocationOffset

      void removeAllLeashHolderBlockPosLocationOffset()
      Remove all leash holder block pos location offset.
    • removeLeashApplyEntityLocationOffset

      void removeLeashApplyEntityLocationOffset()
      Remove leash apply entity location offset.
    • copy

      void copy(ILeashState other, net.minecraft.world.entity.Entity newEntity)
      Copy.
      参数:
      other - the other
      newEntity - the new entity
    • markForSync

      void markForSync()
      Mark for sync.
    • immediateSync

      void immediateSync()
      Immediate sync.
    • checkSync

      void checkSync()
      Check sync.