Class ExpandInteractionResult
java.lang.Object
com.blamejared.crafttweaker.natives.world.ExpandInteractionResult
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanconsumesAction(net.minecraft.world.InteractionResult internal) static booleanindicateItemUse(net.minecraft.world.InteractionResult internal) static booleanshouldSwing(net.minecraft.world.InteractionResult internal) static net.minecraft.world.InteractionResultsidedSuccess(boolean successSide) Returns true ifsuccessSideis true, this can be used to returnSUCCESSon the client, butCONSUMEon the server.
-
Constructor Details
-
ExpandInteractionResult
public ExpandInteractionResult()
-
-
Method Details
-
consumesAction
public static boolean consumesAction(net.minecraft.world.InteractionResult internal) -
shouldSwing
public static boolean shouldSwing(net.minecraft.world.InteractionResult internal) -
indicateItemUse
public static boolean indicateItemUse(net.minecraft.world.InteractionResult internal) -
sidedSuccess
public static net.minecraft.world.InteractionResult 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/interactionresult:success> if
successSideis true, otherwise invalid input: '<'constant:minecraft:world/interactionresult:consume>. - DocParam:
- successSide true
-