Class ExpandItemInteractionResult
java.lang.Object
com.blamejared.crafttweaker.natives.world.ExpandItemInteractionResult
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanconsumesAction(net.minecraft.world.ItemInteractionResult internal) static net.minecraft.world.InteractionResultresult(net.minecraft.world.ItemInteractionResult internal) static net.minecraft.world.ItemInteractionResultsidedSuccess(boolean successSide) Returns true ifsuccessSideis true, this can be used to returnSUCCESSon the client, butCONSUMEon the server.
-
Constructor Details
-
ExpandItemInteractionResult
public ExpandItemInteractionResult()
-
-
Method Details
-
result
public static net.minecraft.world.InteractionResult result(net.minecraft.world.ItemInteractionResult internal) -
consumesAction
public static boolean consumesAction(net.minecraft.world.ItemInteractionResult internal) -
sidedSuccess
public static net.minecraft.world.ItemInteractionResult sidedSuccess(boolean successSide) Returns true ifsuccessSideis true, this can be used to returnSUCCESSon the client, butCONSUMEon the server.- Parameters:
successSide- Is the current side the success side.- Returns:
- invalid input: '<'constant:minecraft:world/iteminteractionresult:success> if
successSideis true, otherwise invalid input: '<'constant:minecraft:world/iteminteractionresult:consume>. - DocParam:
- successSide true
-