类 LeashStateInnerAPI.Query
java.lang.Object
top.r3944realms.superleadrope.util.capability.LeashStateInnerAPI.Query
- 封闭类:
- LeashStateInnerAPI
The type Query.
-
方法概要
修饰符和类型方法说明static Map<net.minecraft.core.BlockPos,ILeashState.LeashState> getAllBlockPosStates(net.minecraft.world.entity.Entity entity) Gets all block pos states.static Map<UUID,ILeashState.LeashState> getAllUUIDStates(net.minecraft.world.entity.Entity entity) Gets all uuid states.static Optional<ILeashState.LeashState>Gets state.static Optional<ILeashState.LeashState>getState(net.minecraft.world.entity.Entity entity, net.minecraft.core.BlockPos knotPos) Gets state.static Optional<ILeashState.LeashState>getState(net.minecraft.world.entity.Entity entity, net.minecraft.world.entity.Entity holder) Gets state.static booleanhasLeashState(net.minecraft.world.entity.Entity entity) Has leash state boolean.static booleanhasState(net.minecraft.world.entity.Entity entity) Has state boolean.static booleanhasStateFor(net.minecraft.world.entity.Entity entity, UUID holderUUID) Has state for boolean.static booleanhasStateFor(net.minecraft.world.entity.Entity entity, net.minecraft.core.BlockPos knotPos) Has state for boolean.static booleanhasStateFor(net.minecraft.world.entity.Entity entity, net.minecraft.world.entity.Entity holder) Has state for boolean.
-
方法详细资料
-
hasLeashState
public static boolean hasLeashState(net.minecraft.world.entity.Entity entity) Has leash state boolean.- 参数:
entity- the entity- 返回:
- the boolean
-
getAllUUIDStates
public static Map<UUID,ILeashState.LeashState> getAllUUIDStates(net.minecraft.world.entity.Entity entity) Gets all uuid states.- 参数:
entity- the entity- 返回:
- the all uuid states
-
getAllBlockPosStates
public static Map<net.minecraft.core.BlockPos,ILeashState.LeashState> getAllBlockPosStates(net.minecraft.world.entity.Entity entity) Gets all block pos states.- 参数:
entity- the entity- 返回:
- the all block pos states
-
getState
public static Optional<ILeashState.LeashState> getState(net.minecraft.world.entity.Entity entity, net.minecraft.world.entity.Entity holder) Gets state.- 参数:
entity- the entityholder- the holder- 返回:
- the state
-
getState
public static Optional<ILeashState.LeashState> getState(net.minecraft.world.entity.Entity entity, UUID holderUUID) Gets state.- 参数:
entity- the entityholderUUID- the holder uuid- 返回:
- the state
-
getState
public static Optional<ILeashState.LeashState> getState(net.minecraft.world.entity.Entity entity, net.minecraft.core.BlockPos knotPos) Gets state.- 参数:
entity- the entityknotPos- the knot pos- 返回:
- the state
-
hasState
public static boolean hasState(net.minecraft.world.entity.Entity entity) Has state boolean.- 参数:
entity- the entity- 返回:
- the boolean
-
hasStateFor
public static boolean hasStateFor(net.minecraft.world.entity.Entity entity, net.minecraft.world.entity.Entity holder) Has state for boolean.- 参数:
entity- the entityholder- the holder- 返回:
- the boolean
-
hasStateFor
Has state for boolean.- 参数:
entity- the entityholderUUID- the holder uuid- 返回:
- the boolean
-
hasStateFor
public static boolean hasStateFor(net.minecraft.world.entity.Entity entity, net.minecraft.core.BlockPos knotPos) Has state for boolean.- 参数:
entity- the entityknotPos- the knot pos- 返回:
- the boolean
-