Record Class HangingSignRenderer.Models
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.blockentity.HangingSignRenderer.Models
- Enclosing class:
HangingSignRenderer
private static record HangingSignRenderer.Models(Model.Simple ceiling, Model.Simple ceilingMiddle, Model.Simple wall)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Model.SimpleThe field for theceilingrecord component.private final Model.SimpleThe field for theceilingMiddlerecord component.private final Model.SimpleThe field for thewallrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateModels(Model.Simple ceiling, Model.Simple ceilingMiddle, Model.Simple wall) Creates an instance of aModelsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionceiling()Returns the value of theceilingrecord component.Returns the value of theceilingMiddlerecord component.static HangingSignRenderer.Modelscreate(BlockEntityRendererProvider.Context context, WoodType type) final booleanIndicates whether some other object is "equal to" this one.get(HangingSignBlock.Attachment attachmentType) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.wall()Returns the value of thewallrecord component.
-
Field Details
-
ceiling
The field for theceilingrecord component. -
ceilingMiddle
The field for theceilingMiddlerecord component. -
wall
The field for thewallrecord component.
-
-
Constructor Details
-
Models
Creates an instance of aModelsrecord class.- Parameters:
ceiling- the value for theceilingrecord componentceilingMiddle- the value for theceilingMiddlerecord componentwall- the value for thewallrecord component
-
-
Method Details
-
create
public static HangingSignRenderer.Models create(BlockEntityRendererProvider.Context context, WoodType type) -
get
-
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). -
ceiling
Returns the value of theceilingrecord component.- Returns:
- the value of the
ceilingrecord component
-
ceilingMiddle
Returns the value of theceilingMiddlerecord component.- Returns:
- the value of the
ceilingMiddlerecord component
-
wall
Returns the value of thewallrecord component.- Returns:
- the value of the
wallrecord component
-