接口 ILeashHelper
- 所有已知实现类:
LeashHelper
public interface ILeashHelper
拴绳数据Helper
-
嵌套类概要
嵌套类修饰符和类型接口说明static interfaceThe interface Holder.static interfaceThe interface Leashed. -
方法概要
修饰符和类型方法说明static booleanchooseMethodWithBooleanRet(@NotNull Supplier<Boolean> cond, Supplier<Boolean> trueSupplier, Supplier<Boolean> falseSupplier) Choose method with boolean ret boolean.static voidchooseMethodWithVoidRet(@NotNull Supplier<Boolean> cond, Supplier<Void> trueSupplier, Supplier<Void> falseSupplier) Choose method with void ret.getHolderHelper(net.minecraft.world.entity.Entity holder) 持有者角度HelpergetLeashedHelper(net.minecraft.world.entity.Entity leashed) Gets leashed helper.
-
方法详细资料
-
getHolderHelper
持有者角度Helper- 参数:
holder- 持有者- 返回:
- IHolder holder helper
-
getLeashedHelper
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 condtrueSupplier- the true supplierfalseSupplier- 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 condtrueSupplier- the true supplierfalseSupplier- the false supplier
-