类 LeashDataInnerAPI.QueryOperations
java.lang.Object
top.r3944realms.superleadrope.util.capability.LeashDataInnerAPI.QueryOperations
- 封闭类:
- LeashDataInnerAPI
The type Query operations.
-
方法概要
修饰符和类型方法说明static booleancanBeAttachedTo(net.minecraft.world.entity.Entity entity, net.minecraft.world.entity.Entity target) Can be attached to boolean.static booleancanBeLeashed(net.minecraft.world.entity.Entity entity) Can be leashed boolean.static Collection<LeashInfo>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 booleanhasHolderLeash(net.minecraft.world.entity.Entity entity) Has holder leash boolean.static booleanhasKnotLeash(net.minecraft.world.entity.Entity entity) Has knot leash boolean.static booleanhasLeash(net.minecraft.world.entity.Entity entity) Has leash boolean.static booleanisInDelayedLeash(net.minecraft.world.entity.Entity entity, UUID holderUUID) Is in delayed leash boolean.static booleanisLeashedBy(net.minecraft.world.entity.Entity entity, UUID holderUUID) Is leashed by boolean.static booleanisLeashedBy(net.minecraft.world.entity.Entity entity, net.minecraft.core.BlockPos knotPos) Is leashed by boolean.static booleanisLeashedBy(net.minecraft.world.entity.Entity entity, net.minecraft.world.entity.Entity holder) Is leashed by boolean.
-
方法详细资料
-
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
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 entityholder- the holder- 返回:
- the boolean
-
isLeashedBy
Is leashed by boolean.- 参数:
entity- the entityholderUUID- 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 entityknotPos- the knot pos- 返回:
- the boolean
-
isInDelayedLeash
Is in delayed leash boolean.- 参数:
entity- the entityholderUUID- 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 entityholder- the holder- 返回:
- the leash info
-
getLeashInfo
public static Optional<LeashInfo> getLeashInfo(net.minecraft.world.entity.Entity entity, UUID holderUUID) Gets leash info.- 参数:
entity- the entityholderUUID- 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 entityknotPos- 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 entitytarget- the target- 返回:
- the boolean
-