Record Class OrderedRenderCommandQueueImpl.ModelCommand<S>
java.lang.Object
java.lang.Record
net.minecraft.client.render.command.OrderedRenderCommandQueueImpl.ModelCommand<S>
- Record Components:
matricesEntry-model-state-lightCoords-overlayCoords-tintedColor-sprite-outlineColor-crumblingOverlay-
- Enclosing class:
OrderedRenderCommandQueueImpl
@Environment(CLIENT)
public static record OrderedRenderCommandQueueImpl.ModelCommand<S>(MatrixStack.Entry matricesEntry, Model<? super S> model, S state, int lightCoords, int overlayCoords, int tintedColor, @Nullable Sprite sprite, int outlineColor, ModelCommandRenderer.CrumblingOverlayCommand crumblingOverlay)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/command/OrderedRenderCommandQueueImpl$ModelCommandintermediary net/minecraft/class_11661$class_11670official hgz$inamed matricesEntryintermediary comp_4504official anamed modelintermediary comp_4505official bnamed stateintermediary comp_4506official cnamed lightCoordsintermediary comp_4507official dnamed overlayCoordsintermediary comp_4508official enamed tintedColorintermediary comp_4509official fnamed spriteintermediary comp_4510official gnamed outlineColorintermediary comp_4511official hnamed crumblingOverlayintermediary comp_4651official i
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ModelCommandRenderer.CrumblingOverlayCommandThe field for thecrumblingOverlayrecord component.private final intThe field for thelightCoordsrecord component.private final MatrixStack.EntryThe field for thematricesEntryrecord component.The field for themodelrecord component.private final intThe field for theoutlineColorrecord component.private final intThe field for theoverlayCoordsrecord component.The field for thespriterecord component.private final SThe field for thestaterecord component.private final intThe field for thetintedColorrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionModelCommand(MatrixStack.Entry entry, Model<? super S> model, S s, int int2, int int3, int int4, @Nullable Sprite sprite, int int5, ModelCommandRenderer.CrumblingOverlayCommand crumblingOverlayCommand) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecrumblingOverlayrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thelightCoordsrecord component.Returns the value of thematricesEntryrecord component.model()Returns the value of themodelrecord component.intReturns the value of theoutlineColorrecord component.intReturns the value of theoverlayCoordsrecord component.sprite()Returns the value of thespriterecord component.state()Returns the value of thestaterecord component.intReturns the value of thetintedColorrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
matricesEntry
The field for thematricesEntryrecord component. -
model
The field for themodelrecord component. -
state
The field for thestaterecord component. -
lightCoords
private final int lightCoordsThe field for thelightCoordsrecord component. -
overlayCoords
private final int overlayCoordsThe field for theoverlayCoordsrecord component. -
tintedColor
private final int tintedColorThe field for thetintedColorrecord component. -
sprite
The field for thespriterecord component. -
outlineColor
private final int outlineColorThe field for theoutlineColorrecord component. -
crumblingOverlay
The field for thecrumblingOverlayrecord component.
-
-
Constructor Details
-
ModelCommand
public ModelCommand(MatrixStack.Entry entry, Model<? super S> model, S s, int int2, int int3, int int4, @Nullable @Nullable Sprite sprite, int int5, @Nullable ModelCommandRenderer.CrumblingOverlayCommand crumblingOverlayCommand)
-
-
Method Details
-
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. -
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. -
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 '=='. -
matricesEntry
Returns the value of thematricesEntryrecord component.- Returns:
- the value of the
matricesEntryrecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
lightCoords
public int lightCoords()Returns the value of thelightCoordsrecord component.- Returns:
- the value of the
lightCoordsrecord component
-
overlayCoords
public int overlayCoords()Returns the value of theoverlayCoordsrecord component.- Returns:
- the value of the
overlayCoordsrecord component
-
tintedColor
public int tintedColor()Returns the value of thetintedColorrecord component.- Returns:
- the value of the
tintedColorrecord component
-
sprite
Returns the value of thespriterecord component.- Returns:
- the value of the
spriterecord component
-
outlineColor
public int outlineColor()Returns the value of theoutlineColorrecord component.- Returns:
- the value of the
outlineColorrecord component
-
crumblingOverlay
Returns the value of thecrumblingOverlayrecord component.- Returns:
- the value of the
crumblingOverlayrecord component
-