Class ExpandInteractionResult

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

@ZenRegister public class ExpandInteractionResult extends Object
  • 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)
    • shouldAwardStats

      public static boolean shouldAwardStats(net.minecraft.world.InteractionResult internal)
    • sidedSuccess

      public static net.minecraft.world.InteractionResult sidedSuccess(boolean successSide)
      Returns true if successSide is true, this can be used to return SUCCESS on the client, but CONSUME on the server.
      Parameters:
      successSide - Is the current side the success side.
      Returns:
      <constant:minecraft:world/interactionresult:success> if successSide is true, otherwise <constant:minecraft:world/interactionresult:consume>.
      DocParam:
      successSide true