Record Class BarricadeItemModel
java.lang.Object
java.lang.Record
net.modgarden.barricade.client.model.item.BarricadeItemModel
- All Implemented Interfaces:
net.minecraft.client.renderer.special.SpecialModelRenderer<BarricadeData>
public record BarricadeItemModel(net.modgarden.barricade.client.model.item.BarricadeBakery bakery)
extends Record
implements net.minecraft.client.renderer.special.SpecialModelRenderer<BarricadeData>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.client.renderer.special.SpecialModelRenderer
net.minecraft.client.renderer.special.SpecialModelRenderer.BakingContext -
Constructor Summary
ConstructorsConstructorDescriptionBarricadeItemModel(net.modgarden.barricade.client.model.item.BarricadeBakery bakery) Creates an instance of aBarricadeItemModelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.modgarden.barricade.client.model.item.BarricadeBakerybakery()Returns the value of thebakeryrecord component.final booleanIndicates whether some other object is "equal to" this one.extractArgument(net.minecraft.world.item.ItemStack stack) voidgetExtents(Consumer<org.joml.Vector3fc> output) final inthashCode()Returns a hash code value for this object.voidsubmit(@Nullable BarricadeData argument, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.SubmitNodeCollector submitNodeCollector, int lightCoords, int overlayCoords, boolean hasFoil, int outlineColor) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BarricadeItemModel
public BarricadeItemModel(net.modgarden.barricade.client.model.item.BarricadeBakery bakery) Creates an instance of aBarricadeItemModelrecord class.- Parameters:
bakery- the value for thebakeryrecord component
-
-
Method Details
-
submit
public void submit(@Nullable BarricadeData argument, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.SubmitNodeCollector submitNodeCollector, int lightCoords, int overlayCoords, boolean hasFoil, int outlineColor) - Specified by:
submitin interfacenet.minecraft.client.renderer.special.SpecialModelRenderer<BarricadeData>
-
getExtents
- Specified by:
getExtentsin interfacenet.minecraft.client.renderer.special.SpecialModelRenderer<BarricadeData>
-
extractArgument
- Specified by:
extractArgumentin interfacenet.minecraft.client.renderer.special.SpecialModelRenderer<BarricadeData>
-
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). -
bakery
public net.modgarden.barricade.client.model.item.BarricadeBakery bakery()Returns the value of thebakeryrecord component.- Returns:
- the value of the
bakeryrecord component
-