类 SuperLeadRopeApi

java.lang.Object
top.r3944realms.superleadrope.api.SuperLeadRopeApi

public class SuperLeadRopeApi extends Object
The type Super lead rope api.
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final org.slf4j.Logger
    The constant LOGGER.
    static String
    The constant MOD_ID.
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    getLeashData(net.minecraft.world.entity.Entity pEntity)
    Gets leash data.
    Gets leash helper.
    getLeashState(net.minecraft.world.entity.Entity pEntity)
    Gets leash state.
    static net.minecraft.core.BlockPos
    getSuperLeadKnotPos(net.minecraft.world.entity.Entity entity)
    Gets super lead knot pos.
    static boolean
    isLeashable(net.minecraft.world.entity.Entity entity)
    Is leashable boolean.
    static boolean
    isLeashHolder(@NotNull net.minecraft.world.entity.Entity pEntity, UUID pHolderUUID)
    Is leash holder boolean.
    static boolean
    isLeashHolder(@NotNull net.minecraft.world.entity.Entity pEntity, net.minecraft.core.BlockPos pKnotPos)
    Is leash holder boolean.
    static boolean
    isLeashHolder(@NotNull net.minecraft.world.entity.Entity pEntity, net.minecraft.world.entity.Entity pTestHolder)
    Is leash holder boolean.
    static boolean
    isSuperLeadKnot(net.minecraft.world.entity.Entity entity)
    Is super lead knot boolean.
    static @NotNull List<net.minecraft.world.entity.Entity>
    leashableInArea(@NotNull net.minecraft.world.entity.Entity entity, Predicate<net.minecraft.world.entity.Entity> filter, double fetchDistance)
    Leashable in area list.
    static @NotNull List<net.minecraft.world.entity.Entity>
    leashableInArea(@NotNull net.minecraft.world.level.Level pLevel, net.minecraft.world.phys.Vec3 pPos, Predicate<net.minecraft.world.entity.Entity> filter, double fetchDistance)
    Leashable in area list.
    static @NotNull List<net.minecraft.world.entity.Entity>
    leashableInArea(net.minecraft.world.entity.Entity holder)
    Leashable in area list.
    static <T extends net.minecraft.world.entity.Entity>
    @NotNull List<T>
    leashableInArea(net.minecraft.world.entity.Entity holder, Class<T> clazz, net.minecraft.world.phys.AABB box, Predicate<T> filter)
    Leashable in area list.
    static @NotNull List<net.minecraft.world.entity.Entity>
    leashableInArea(net.minecraft.world.entity.Entity entity, Predicate<net.minecraft.world.entity.Entity> filter)
    Leashable in area list.
    static @NotNull List<net.minecraft.world.entity.Entity>
    leashableInArea(net.minecraft.world.level.Level pLevel, net.minecraft.world.phys.Vec3 pPos, Predicate<net.minecraft.world.entity.Entity> filter)
    Leashable in area list.

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

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • LOGGER

      public static final org.slf4j.Logger LOGGER
      The constant LOGGER.
    • MOD_ID

      public static String MOD_ID
      The constant MOD_ID.
  • 构造器详细资料

    • SuperLeadRopeApi

      public SuperLeadRopeApi()
  • 方法详细资料

    • getLeashHelper

      public static ILeashHelper getLeashHelper()
      Gets leash helper.
      返回:
      the leash helper
    • leashableInArea

      @NotNull public static @NotNull List<net.minecraft.world.entity.Entity> leashableInArea(net.minecraft.world.level.Level pLevel, net.minecraft.world.phys.Vec3 pPos, Predicate<net.minecraft.world.entity.Entity> filter)
      Leashable in area list.
      参数:
      pLevel - the p level
      pPos - the p pos
      filter - the filter
      返回:
      the list
    • leashableInArea

      @NotNull public static @NotNull List<net.minecraft.world.entity.Entity> leashableInArea(@NotNull @NotNull net.minecraft.world.entity.Entity entity, Predicate<net.minecraft.world.entity.Entity> filter, double fetchDistance)
      Leashable in area list.
      参数:
      entity - the entity
      filter - the filter
      fetchDistance - the fetch distance
      返回:
      the list
    • leashableInArea

      @NotNull public static @NotNull List<net.minecraft.world.entity.Entity> leashableInArea(@NotNull @NotNull net.minecraft.world.level.Level pLevel, net.minecraft.world.phys.Vec3 pPos, Predicate<net.minecraft.world.entity.Entity> filter, double fetchDistance)
      Leashable in area list.
      参数:
      pLevel - the p level
      pPos - the p pos
      filter - the filter
      fetchDistance - the fetch distance
      返回:
      the list
    • leashableInArea

      @NotNull public static @NotNull List<net.minecraft.world.entity.Entity> leashableInArea(net.minecraft.world.entity.Entity entity, Predicate<net.minecraft.world.entity.Entity> filter)
      Leashable in area list.
      参数:
      entity - the entity
      filter - the filter
      返回:
      the list
    • leashableInArea

      @NotNull public static @NotNull List<net.minecraft.world.entity.Entity> leashableInArea(net.minecraft.world.entity.Entity holder)
      Leashable in area list.
      参数:
      holder - the holder
      返回:
      the list
    • leashableInArea

      @NotNull public static <T extends net.minecraft.world.entity.Entity> @NotNull List<T> leashableInArea(net.minecraft.world.entity.Entity holder, Class<T> clazz, net.minecraft.world.phys.AABB box, Predicate<T> filter)
      Leashable in area list.
      类型参数:
      T - the type parameter
      参数:
      holder - the holder
      clazz - the clazz
      box - the box
      filter - the filter
      返回:
      the list
    • isSuperLeadKnot

      public static boolean isSuperLeadKnot(net.minecraft.world.entity.Entity entity)
      Is super lead knot boolean.
      参数:
      entity - the entity
      返回:
      the boolean
    • getSuperLeadKnotPos

      public static net.minecraft.core.BlockPos getSuperLeadKnotPos(net.minecraft.world.entity.Entity entity)
      Gets super lead knot pos.
      参数:
      entity - the entity
      返回:
      the super lead knot pos
    • isLeashable

      public static boolean isLeashable(net.minecraft.world.entity.Entity entity)
      Is leashable boolean.
      参数:
      entity - the entity
      返回:
      the boolean
    • isLeashHolder

      public static boolean isLeashHolder(@NotNull @NotNull net.minecraft.world.entity.Entity pEntity, net.minecraft.world.entity.Entity pTestHolder)
      Is leash holder boolean.
      参数:
      pEntity - the p entity
      pTestHolder - the p test holder
      返回:
      the boolean
    • isLeashHolder

      public static boolean isLeashHolder(@NotNull @NotNull net.minecraft.world.entity.Entity pEntity, UUID pHolderUUID)
      Is leash holder boolean.
      参数:
      pEntity - the p entity
      pHolderUUID - the p holder uuid
      返回:
      the boolean
    • isLeashHolder

      public static boolean isLeashHolder(@NotNull @NotNull net.minecraft.world.entity.Entity pEntity, net.minecraft.core.BlockPos pKnotPos)
      Is leash holder boolean.
      参数:
      pEntity - the p entity
      pKnotPos - the p knot pos
      返回:
      the boolean
    • getLeashState

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

      public static Optional<ILeashData> getLeashData(net.minecraft.world.entity.Entity pEntity)
      Gets leash data.
      参数:
      pEntity - the p entity
      返回:
      the leash data