Record Class Blender.OutputBuffer
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.blending.Blender.OutputBuffer
- Enclosing class:
Blender
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final float[]The field for thealphasrecord component.private final BlenderThe field for theblenderrecord component.private final intThe field for thecellCountXrecord component.private final intThe field for thecellCountZrecord component.private final intThe field for theminCellXrecord component.private final intThe field for theminCellZrecord component.private static final intprivate final float[]The field for theoffsetsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionOutputBuffer(Blender blender, int minCellX, int minCellZ, int cellCountX, int cellCountZ, float[] alphas, float[] offsets) Creates an instance of aOutputBufferrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloat[]alphas()Returns the value of thealphasrecord component.blender()Returns the value of theblenderrecord component.intReturns the value of thecellCountXrecord component.intReturns the value of thecellCountZrecord component.final booleanIndicates whether some other object is "equal to" this one.floatgetAlpha(int blockX, int blockZ) private intgetIndex(int blockX, int blockZ) floatgetOffset(int blockX, int blockZ) final inthashCode()Returns a hash code value for this object.intminCellX()Returns the value of theminCellXrecord component.intminCellZ()Returns the value of theminCellZrecord component.float[]offsets()Returns the value of theoffsetsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
blender
The field for theblenderrecord component. -
minCellX
private final int minCellXThe field for theminCellXrecord component. -
minCellZ
private final int minCellZThe field for theminCellZrecord component. -
cellCountX
private final int cellCountXThe field for thecellCountXrecord component. -
cellCountZ
private final int cellCountZThe field for thecellCountZrecord component. -
alphas
private final float[] alphasThe field for thealphasrecord component. -
offsets
private final float[] offsetsThe field for theoffsetsrecord component. -
NO_VALUE
private static final int NO_VALUE- See Also:
-
-
Constructor Details
-
OutputBuffer
public OutputBuffer(Blender blender, int minCellX, int minCellZ, int cellCountX, int cellCountZ, float[] alphas, float[] offsets) Creates an instance of aOutputBufferrecord class.- Parameters:
blender- the value for theblenderrecord componentminCellX- the value for theminCellXrecord componentminCellZ- the value for theminCellZrecord componentcellCountX- the value for thecellCountXrecord componentcellCountZ- the value for thecellCountZrecord componentalphas- the value for thealphasrecord componentoffsets- the value for theoffsetsrecord component
-
-
Method Details
-
createAlphaSampler
-
createOffsetSampler
-
getAlpha
public float getAlpha(int blockX, int blockZ) -
getOffset
public float getOffset(int blockX, int blockZ) -
getIndex
private int getIndex(int blockX, int blockZ) -
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. -
blender
Returns the value of theblenderrecord component.- Returns:
- the value of the
blenderrecord component
-
minCellX
public int minCellX()Returns the value of theminCellXrecord component.- Returns:
- the value of the
minCellXrecord component
-
minCellZ
public int minCellZ()Returns the value of theminCellZrecord component.- Returns:
- the value of the
minCellZrecord component
-
cellCountX
public int cellCountX()Returns the value of thecellCountXrecord component.- Returns:
- the value of the
cellCountXrecord component
-
cellCountZ
public int cellCountZ()Returns the value of thecellCountZrecord component.- Returns:
- the value of the
cellCountZrecord component
-
alphas
public float[] alphas()Returns the value of thealphasrecord component.- Returns:
- the value of the
alphasrecord component
-
offsets
public float[] offsets()Returns the value of theoffsetsrecord component.- Returns:
- the value of the
offsetsrecord component
-