接口 ILeashHelper

所有已知实现类:
LeashHelper

public interface ILeashHelper
拴绳数据Helper
  • 方法详细资料

    • getHolderHelper

      ILeashHelper.IHolder getHolderHelper(net.minecraft.world.entity.Entity holder)
      持有者角度Helper
      参数:
      holder - 持有者
      返回:
      IHolder holder helper
    • getLeashedHelper

      ILeashHelper.ILeashed getLeashedHelper(net.minecraft.world.entity.Entity leashed)
      Gets leashed helper.
      参数:
      leashed - the leashed
      返回:
      the leashed helper
    • chooseMethodWithBooleanRet

      static boolean chooseMethodWithBooleanRet(@NotNull @NotNull Supplier<Boolean> cond, Supplier<Boolean> trueSupplier, Supplier<Boolean> falseSupplier)
      Choose method with boolean ret boolean.
      参数:
      cond - the cond
      trueSupplier - the true supplier
      falseSupplier - the false supplier
      返回:
      the boolean
    • chooseMethodWithVoidRet

      static void chooseMethodWithVoidRet(@NotNull @NotNull Supplier<Boolean> cond, Supplier<Void> trueSupplier, Supplier<Void> falseSupplier)
      Choose method with void ret.
      参数:
      cond - the cond
      trueSupplier - the true supplier
      falseSupplier - the false supplier