Class ExpandInteractionResult

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

@ZenRegister public class ExpandInteractionResult extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    consumesAction(net.minecraft.world.InteractionResult internal)
     
    static boolean
    indicateItemUse(net.minecraft.world.InteractionResult internal)
     
    static boolean
    shouldSwing(net.minecraft.world.InteractionResult internal)
     
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 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:
      invalid input: '<'constant:minecraft:world/interactionresult:success> if successSide is true, otherwise invalid input: '<'constant:minecraft:world/interactionresult:consume>.
      DocParam:
      successSide true