Record Class ExtendedItemSubmit
java.lang.Object
java.lang.Record
net.fabricmc.fabric.api.client.renderer.v1.render.submit.ExtendedItemSubmit
- All Implemented Interfaces:
net.minecraft.client.renderer.feature.submit.SubmitNode, net.minecraft.client.renderer.feature.submit.TranslucentSubmit
public record ExtendedItemSubmit(com.mojang.blaze3d.vertex.PoseStack.Pose pose, net.minecraft.world.item.ItemDisplayContext displayContext, int lightCoords, int overlayCoords, int outlineColor, int[] tintLayers, List<net.minecraft.client.resources.model.geometry.BakedQuad> quads, MeshView mesh, net.minecraft.client.renderer.item.ItemStackRenderState.FoilType foilType)
extends Record
implements net.minecraft.client.renderer.feature.submit.TranslucentSubmit
An alternative to
ItemFeatureRenderer.Submit that accepts a MeshView.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.client.renderer.feature.FeatureRendererType<ExtendedItemSubmit> -
Constructor Summary
ConstructorsConstructorDescriptionExtendedItemSubmit(com.mojang.blaze3d.vertex.PoseStack.Pose pose, net.minecraft.world.item.ItemDisplayContext displayContext, int lightCoords, int overlayCoords, int outlineColor, int[] tintLayers, List<net.minecraft.client.resources.model.geometry.BakedQuad> quads, MeshView mesh, net.minecraft.client.renderer.item.ItemStackRenderState.FoilType foilType) Creates an instance of aExtendedItemSubmitrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemDisplayContextReturns the value of thedisplayContextrecord component.floatfinal booleanIndicates whether some other object is "equal to" this one.net.minecraft.client.renderer.feature.FeatureRendererType<? extends net.minecraft.client.renderer.feature.submit.TranslucentSubmit> net.minecraft.client.renderer.item.ItemStackRenderState.FoilTypefoilType()Returns the value of thefoilTyperecord component.final inthashCode()Returns a hash code value for this object.booleanintReturns the value of thelightCoordsrecord component.mesh()Returns the value of themeshrecord component.intReturns the value of theoutlineColorrecord component.intReturns the value of theoverlayCoordsrecord component.com.mojang.blaze3d.vertex.PoseStack.Posepose()Returns the value of theposerecord component.List<net.minecraft.client.resources.model.geometry.BakedQuad> quads()Returns the value of thequadsrecord component.int[]Returns the value of thetintLayersrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
TYPE
public static final net.minecraft.client.renderer.feature.FeatureRendererType<ExtendedItemSubmit> TYPE
-
-
Constructor Details
-
ExtendedItemSubmit
public ExtendedItemSubmit(com.mojang.blaze3d.vertex.PoseStack.Pose pose, net.minecraft.world.item.ItemDisplayContext displayContext, int lightCoords, int overlayCoords, int outlineColor, int[] tintLayers, List<net.minecraft.client.resources.model.geometry.BakedQuad> quads, MeshView mesh, net.minecraft.client.renderer.item.ItemStackRenderState.FoilType foilType) Creates an instance of aExtendedItemSubmitrecord class.- Parameters:
pose- the value for theposerecord componentdisplayContext- the value for thedisplayContextrecord componentlightCoords- the value for thelightCoordsrecord componentoverlayCoords- the value for theoverlayCoordsrecord componentoutlineColor- the value for theoutlineColorrecord componenttintLayers- the value for thetintLayersrecord componentquads- the value for thequadsrecord componentmesh- the value for themeshrecord componentfoilType- the value for thefoilTyperecord component
-
-
Method Details
-
hasTranslucency
public boolean hasTranslucency() -
distanceToCameraSq
public float distanceToCameraSq()- Specified by:
distanceToCameraSqin interfacenet.minecraft.client.renderer.feature.submit.TranslucentSubmit
-
featureType
public net.minecraft.client.renderer.feature.FeatureRendererType<? extends net.minecraft.client.renderer.feature.submit.TranslucentSubmit> featureType()- Specified by:
featureTypein interfacenet.minecraft.client.renderer.feature.submit.SubmitNode- Specified by:
featureTypein interfacenet.minecraft.client.renderer.feature.submit.TranslucentSubmit
-
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. -
pose
public com.mojang.blaze3d.vertex.PoseStack.Pose pose()Returns the value of theposerecord component.- Returns:
- the value of the
poserecord component
-
displayContext
public net.minecraft.world.item.ItemDisplayContext displayContext()Returns the value of thedisplayContextrecord component.- Returns:
- the value of the
displayContextrecord 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
-
outlineColor
public int outlineColor()Returns the value of theoutlineColorrecord component.- Returns:
- the value of the
outlineColorrecord component
-
tintLayers
public int[] tintLayers()Returns the value of thetintLayersrecord component.- Returns:
- the value of the
tintLayersrecord component
-
quads
Returns the value of thequadsrecord component.- Returns:
- the value of the
quadsrecord component
-
mesh
Returns the value of themeshrecord component.- Returns:
- the value of the
meshrecord component
-
foilType
public net.minecraft.client.renderer.item.ItemStackRenderState.FoilType foilType()Returns the value of thefoilTyperecord component.- Returns:
- the value of the
foilTyperecord component
-