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
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface Wrapper
Wrapper.Context<C> -
Constructor Summary
ConstructorsConstructorDescriptionCarverDebugSettings(boolean debugMode, Material airState, Material waterState, Material lavaState, Material barrierState) Creates an instance of aCarverDebugSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionairState()Returns the value of theairStaterecord component.Returns the value of thebarrierStaterecord component.booleanReturns the value of thedebugModerecord component.static CarverDebugSettingsfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelavaStaterecord component.static CarverDebugSettingsof(boolean debugMode, Material airState, Material waterState, Material lavaState, Material barrierState) static CarverDebugSettingsConvert this handle to the real Minecraft object.final StringtoString()Returns a string representation of this record class.Returns the value of thewaterStaterecord component.
-
Constructor Details
-
CarverDebugSettings
public CarverDebugSettings(boolean debugMode, Material airState, Material waterState, Material lavaState, Material barrierState) Creates an instance of aCarverDebugSettingsrecord class.- Parameters:
debugMode- the value for thedebugModerecord componentairState- the value for theairStaterecord componentwaterState- the value for thewaterStaterecord componentlavaState- the value for thelavaStaterecord componentbarrierState- the value for thebarrierStaterecord component
-
-
Method Details
-
of
-
of
-
defaultSettings
-
toMinecraft
Description copied from interface:WrapperConvert this handle to the real Minecraft object.- Specified by:
toMinecraftin interfaceWrapper- Returns:
- the real Minecraft object
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
debugMode
public boolean debugMode()Returns the value of thedebugModerecord component.- Returns:
- the value of the
debugModerecord component
-
airState
Returns the value of theairStaterecord component.- Returns:
- the value of the
airStaterecord component
-
waterState
Returns the value of thewaterStaterecord component.- Returns:
- the value of the
waterStaterecord component
-
lavaState
Returns the value of thelavaStaterecord component.- Returns:
- the value of the
lavaStaterecord component
-
barrierState
Returns the value of thebarrierStaterecord component.- Returns:
- the value of the
barrierStaterecord component
-