Record Class CarverDebugSettings

java.lang.Object
java.lang.Record
dev.wyck.wrapper.worldgen.carver.CarverDebugSettings
All Implemented Interfaces:
Wrapper

@NullMarked @AsOf("2.3.0") public record CarverDebugSettings(boolean debugMode, Material airState, Material waterState, Material lavaState, Material barrierState) extends Record implements Wrapper
Wraps Minecraft's CarverDebugSettings, the block states a carver paints in air, water, lava, and barrier positions when debug mode is enabled.
Since:
2.3.0
  • Constructor Details

    • CarverDebugSettings

      public CarverDebugSettings(boolean debugMode, Material airState, Material waterState, Material lavaState, Material barrierState)
      Creates an instance of a CarverDebugSettings record class.
      Parameters:
      debugMode - the value for the debugMode record component
      airState - the value for the airState record component
      waterState - the value for the waterState record component
      lavaState - the value for the lavaState record component
      barrierState - the value for the barrierState record component
  • Method Details

    • of

      @AsOf("2.3.0") public static CarverDebugSettings of(boolean debugMode, Material airState, Material waterState, Material lavaState, Material barrierState)
    • of

      @AsOf("2.3.0") public static CarverDebugSettings of(Material airState, Material waterState, Material lavaState, Material barrierState)
    • defaultSettings

      @AsOf("2.3.0") public static CarverDebugSettings defaultSettings()
    • toMinecraft

      @AsOf("2.3.0") public Object toMinecraft()
      Description copied from interface: Wrapper
      Convert this handle to the real Minecraft object.
      Specified by:
      toMinecraft in interface Wrapper
      Returns:
      the real Minecraft object
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • debugMode

      public boolean debugMode()
      Returns the value of the debugMode record component.
      Returns:
      the value of the debugMode record component
    • airState

      public Material airState()
      Returns the value of the airState record component.
      Returns:
      the value of the airState record component
    • waterState

      public Material waterState()
      Returns the value of the waterState record component.
      Returns:
      the value of the waterState record component
    • lavaState

      public Material lavaState()
      Returns the value of the lavaState record component.
      Returns:
      the value of the lavaState record component
    • barrierState

      public Material barrierState()
      Returns the value of the barrierState record component.
      Returns:
      the value of the barrierState record component