类 LeashStateInnerAPI.Query

java.lang.Object
top.r3944realms.superleadrope.util.capability.LeashStateInnerAPI.Query
封闭类:
LeashStateInnerAPI

public static final class LeashStateInnerAPI.Query extends Object
The type Query.
  • 方法详细资料

    • 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 entity
      holder - the holder
      返回:
      the state
    • getState

      public static Optional<ILeashState.LeashState> getState(net.minecraft.world.entity.Entity entity, UUID holderUUID)
      Gets state.
      参数:
      entity - the entity
      holderUUID - 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 entity
      knotPos - 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 entity
      holder - the holder
      返回:
      the boolean
    • hasStateFor

      public static boolean hasStateFor(net.minecraft.world.entity.Entity entity, UUID holderUUID)
      Has state for boolean.
      参数:
      entity - the entity
      holderUUID - 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 entity
      knotPos - the knot pos
      返回:
      the boolean