Record Class ForceLoadCommand.ForceLoadParams
java.lang.Object
java.lang.Record
net.minecraft.server.commands.ForceLoadCommand.ForceLoadParams
- Enclosing class:
ForceLoadCommand
private static record ForceLoadCommand.ForceLoadParams(ResourceKey<Level> dimension, int minChunkX, int minChunkZ, int maxChunkX, int maxChunkZ)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ResourceKey<Level> The field for thedimensionrecord component.private final intThe field for themaxChunkXrecord component.private final intThe field for themaxChunkZrecord component.private final intThe field for theminChunkXrecord component.private final intThe field for theminChunkZrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateForceLoadParams(ResourceKey<Level> dimension, int minChunkX, int minChunkZ, int maxChunkX, int maxChunkZ) Creates an instance of aForceLoadParamsrecord 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.max()intReturns the value of themaxChunkXrecord component.intReturns the value of themaxChunkZrecord component.min()intReturns the value of theminChunkXrecord component.intReturns the value of theminChunkZrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
dimension
The field for thedimensionrecord component. -
minChunkX
private final int minChunkXThe field for theminChunkXrecord component. -
minChunkZ
private final int minChunkZThe field for theminChunkZrecord component. -
maxChunkX
private final int maxChunkXThe field for themaxChunkXrecord component. -
maxChunkZ
private final int maxChunkZThe field for themaxChunkZrecord component.
-
-
Constructor Details
-
ForceLoadParams
private ForceLoadParams(ResourceKey<Level> dimension, int minChunkX, int minChunkZ, int maxChunkX, int maxChunkZ) Creates an instance of aForceLoadParamsrecord class.- Parameters:
dimension- the value for thedimensionrecord componentminChunkX- the value for theminChunkXrecord componentminChunkZ- the value for theminChunkZrecord componentmaxChunkX- the value for themaxChunkXrecord componentmaxChunkZ- the value for themaxChunkZrecord component
-
-
Method Details
-
min
-
max
-
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. -
dimension
Returns the value of thedimensionrecord component.- Returns:
- the value of the
dimensionrecord component
-
minChunkX
public int minChunkX()Returns the value of theminChunkXrecord component.- Returns:
- the value of the
minChunkXrecord component
-
minChunkZ
public int minChunkZ()Returns the value of theminChunkZrecord component.- Returns:
- the value of the
minChunkZrecord component
-
maxChunkX
public int maxChunkX()Returns the value of themaxChunkXrecord component.- Returns:
- the value of the
maxChunkXrecord component
-
maxChunkZ
public int maxChunkZ()Returns the value of themaxChunkZrecord component.- Returns:
- the value of the
maxChunkZrecord component
-