Class ExpandInteractionResultHolder

java.lang.Object
com.blamejared.crafttweaker.natives.world.ExpandInteractionResultHolder

@ZenRegister public class ExpandInteractionResultHolder extends Object
DocParam:
T string
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> net.minecraft.world.InteractionResultHolder<T>
    consume(Class<T> tClass, T object)
    Create a consume interaction with the given object.
    static <T> net.minecraft.world.InteractionResultHolder<T>
    fail(Class<T> tClass, T object)
     
    static <T> T
    getObject(net.minecraft.world.InteractionResultHolder<T> internal, Class<T> tClass)
     
    static net.minecraft.world.InteractionResult
    getResult(net.minecraft.world.InteractionResultHolder internal)
     
    static <T> net.minecraft.world.InteractionResultHolder<T>
    pass(Class<T> tClass, T object)
     
    static <T> net.minecraft.world.InteractionResultHolder<T>
    sidedSuccess(Class<T> tClass, T object, boolean success)
     
    static <T> net.minecraft.world.InteractionResultHolder<T>
    success(Class<T> tClass, T object)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExpandInteractionResultHolder

      public ExpandInteractionResultHolder()
  • Method Details

    • getResult

      public static net.minecraft.world.InteractionResult getResult(net.minecraft.world.InteractionResultHolder internal)
    • getObject

      public static <T> T getObject(net.minecraft.world.InteractionResultHolder<T> internal, Class<T> tClass)
    • success

      public static <T> net.minecraft.world.InteractionResultHolder<T> success(Class<T> tClass, T object)
    • consume

      public static <T> net.minecraft.world.InteractionResultHolder<T> consume(Class<T> tClass, T object)
      Create a consume interaction with the given object.
      Type Parameters:
      T - The type that is being held.
      Parameters:
      object - The object that is held.
      Returns:
      A new InteractionResultHolder with the given object.
      DocParam:
      tClass string, object "value"
    • pass

      public static <T> net.minecraft.world.InteractionResultHolder<T> pass(Class<T> tClass, T object)
    • fail

      public static <T> net.minecraft.world.InteractionResultHolder<T> fail(Class<T> tClass, T object)
    • sidedSuccess

      public static <T> net.minecraft.world.InteractionResultHolder<T> sidedSuccess(Class<T> tClass, T object, boolean success)