Record Class LevelBiomeEdit.Replace
java.lang.Object
java.lang.Record
dev.wyck.registry.level.LevelBiomeEdit.Replace
- Record Components:
dimension- the dimension to replace the biome intarget- the biome to replacereplacement- the biome to replace with
- All Implemented Interfaces:
LevelBiomeEdit
- Enclosing interface:
LevelBiomeEdit
@AsOf("2.3.0")
public static record LevelBiomeEdit.Replace(ResourceKey dimension, ResourceKey target, ResourceKey replacement)
extends Record
implements LevelBiomeEdit
Replaces a biome in a dimension.
- Since:
- 2.3.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface LevelBiomeEdit
LevelBiomeEdit.Add, LevelBiomeEdit.Replace -
Constructor Summary
ConstructorsConstructorDescriptionReplace(ResourceKey dimension, ResourceKey target, ResourceKey replacement) Creates an instance of aReplacerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedimensionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thereplacementrecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Replace
Creates an instance of aReplacerecord class.- Parameters:
dimension- the value for thedimensionrecord componenttarget- the value for thetargetrecord componentreplacement- the value for thereplacementrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
dimension
Returns the value of thedimensionrecord component.- Specified by:
dimensionin interfaceLevelBiomeEdit- Returns:
- the value of the
dimensionrecord component
-
target
-
replacement
Returns the value of thereplacementrecord component.- Returns:
- the value of the
replacementrecord component
-