Class ExpandItemInteractionResult

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

@ZenRegister public class ExpandItemInteractionResult extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

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

    • 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 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/iteminteractionresult:success> if successSide is true, otherwise invalid input: '<'constant:minecraft:world/iteminteractionresult:consume>.
      DocParam:
      successSide true