类 LeashDataInnerAPI.QueryOperations

java.lang.Object
top.r3944realms.superleadrope.util.capability.LeashDataInnerAPI.QueryOperations
封闭类:
LeashDataInnerAPI

public static final class LeashDataInnerAPI.QueryOperations extends Object
The type Query operations.
  • 方法概要

    修饰符和类型
    方法
    说明
    static boolean
    canBeAttachedTo(net.minecraft.world.entity.Entity entity, net.minecraft.world.entity.Entity target)
    Can be attached to boolean.
    static boolean
    canBeLeashed(net.minecraft.world.entity.Entity entity)
    Can be leashed boolean.
    getAllLeashes(net.minecraft.world.entity.Entity entity)
    Gets all leashes.
    getLeashInfo(net.minecraft.world.entity.Entity entity, UUID holderUUID)
    Gets leash info.
    getLeashInfo(net.minecraft.world.entity.Entity entity, net.minecraft.core.BlockPos knotPos)
    Gets leash info.
    getLeashInfo(net.minecraft.world.entity.Entity entity, net.minecraft.world.entity.Entity holder)
    Gets leash info.
    static boolean
    hasHolderLeash(net.minecraft.world.entity.Entity entity)
    Has holder leash boolean.
    static boolean
    hasKnotLeash(net.minecraft.world.entity.Entity entity)
    Has knot leash boolean.
    static boolean
    hasLeash(net.minecraft.world.entity.Entity entity)
    Has leash boolean.
    static boolean
    isInDelayedLeash(net.minecraft.world.entity.Entity entity, UUID holderUUID)
    Is in delayed leash boolean.
    static boolean
    isLeashedBy(net.minecraft.world.entity.Entity entity, UUID holderUUID)
    Is leashed by boolean.
    static boolean
    isLeashedBy(net.minecraft.world.entity.Entity entity, net.minecraft.core.BlockPos knotPos)
    Is leashed by boolean.
    static boolean
    isLeashedBy(net.minecraft.world.entity.Entity entity, net.minecraft.world.entity.Entity holder)
    Is leashed by boolean.

    从类继承的方法 java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 方法详细资料

    • hasLeash

      public static boolean hasLeash(net.minecraft.world.entity.Entity entity)
      Has leash boolean.
      参数:
      entity - the entity
      返回:
      the boolean
    • hasKnotLeash

      public static boolean hasKnotLeash(net.minecraft.world.entity.Entity entity)
      Has knot leash boolean.
      参数:
      entity - the entity
      返回:
      the boolean
    • hasHolderLeash

      public static boolean hasHolderLeash(net.minecraft.world.entity.Entity entity)
      Has holder leash boolean.
      参数:
      entity - the entity
      返回:
      the boolean
    • getAllLeashes

      public static Collection<LeashInfo> getAllLeashes(net.minecraft.world.entity.Entity entity)
      Gets all leashes.
      参数:
      entity - the entity
      返回:
      the all leashes
    • isLeashedBy

      public static boolean isLeashedBy(net.minecraft.world.entity.Entity entity, net.minecraft.world.entity.Entity holder)
      Is leashed by boolean.
      参数:
      entity - the entity
      holder - the holder
      返回:
      the boolean
    • isLeashedBy

      public static boolean isLeashedBy(net.minecraft.world.entity.Entity entity, UUID holderUUID)
      Is leashed by boolean.
      参数:
      entity - the entity
      holderUUID - the holder uuid
      返回:
      the boolean
    • isLeashedBy

      public static boolean isLeashedBy(net.minecraft.world.entity.Entity entity, net.minecraft.core.BlockPos knotPos)
      Is leashed by boolean.
      参数:
      entity - the entity
      knotPos - the knot pos
      返回:
      the boolean
    • isInDelayedLeash

      public static boolean isInDelayedLeash(net.minecraft.world.entity.Entity entity, UUID holderUUID)
      Is in delayed leash boolean.
      参数:
      entity - the entity
      holderUUID - the holder uuid
      返回:
      the boolean
    • getLeashInfo

      public static Optional<LeashInfo> getLeashInfo(net.minecraft.world.entity.Entity entity, net.minecraft.world.entity.Entity holder)
      Gets leash info.
      参数:
      entity - the entity
      holder - the holder
      返回:
      the leash info
    • getLeashInfo

      public static Optional<LeashInfo> getLeashInfo(net.minecraft.world.entity.Entity entity, UUID holderUUID)
      Gets leash info.
      参数:
      entity - the entity
      holderUUID - the holder uuid
      返回:
      the leash info
    • getLeashInfo

      public static Optional<LeashInfo> getLeashInfo(net.minecraft.world.entity.Entity entity, net.minecraft.core.BlockPos knotPos)
      Gets leash info.
      参数:
      entity - the entity
      knotPos - the knot pos
      返回:
      the leash info
    • canBeLeashed

      public static boolean canBeLeashed(net.minecraft.world.entity.Entity entity)
      Can be leashed boolean.
      参数:
      entity - the entity
      返回:
      the boolean
    • canBeAttachedTo

      public static boolean canBeAttachedTo(net.minecraft.world.entity.Entity entity, net.minecraft.world.entity.Entity target)
      Can be attached to boolean.
      参数:
      entity - the entity
      target - the target
      返回:
      the boolean