Class ExpandInteractionResultHolder
java.lang.Object
com.blamejared.crafttweaker.natives.world.ExpandInteractionResultHolder
- DocParam:
- T string
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> net.minecraft.world.InteractionResultHolder<T>Create a consume interaction with the given object.static <T> net.minecraft.world.InteractionResultHolder<T>static <T> Tstatic net.minecraft.world.InteractionResultgetResult(net.minecraft.world.InteractionResultHolder internal) static <T> net.minecraft.world.InteractionResultHolder<T>static <T> net.minecraft.world.InteractionResultHolder<T>sidedSuccess(Class<T> tClass, T object, boolean success) static <T> net.minecraft.world.InteractionResultHolder<T>
-
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
-
consume
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
-
fail
-
sidedSuccess
public static <T> net.minecraft.world.InteractionResultHolder<T> sidedSuccess(Class<T> tClass, T object, boolean success)
-