Record Class BedrockPlayerAttachables.Surface
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.render.BedrockPlayerAttachables.Surface
- Enclosing class:
BedrockPlayerAttachables
public static record BedrockPlayerAttachables.Surface(net.minecraft.world.entity.EquipmentSlot slot, net.minecraft.client.model.Model<BedrockPlayerAttachables.Draw> model, BedrockPlayerControllers.Surface selection, Map<String, BedrockBoneAnimation.Transform> pose, BedrockAttachableBindings.Resolved bindings, net.minecraft.client.renderer.rendertype.RenderType renderType)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSurface(net.minecraft.world.entity.EquipmentSlot slot, net.minecraft.client.model.Model<BedrockPlayerAttachables.Draw> model, BedrockPlayerControllers.Surface selection, Map<String, BedrockBoneAnimation.Transform> pose, BedrockAttachableBindings.Resolved bindings, net.minecraft.client.renderer.rendertype.RenderType renderType) Creates an instance of aSurfacerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbindings()Returns the value of thebindingsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.client.model.Model<BedrockPlayerAttachables.Draw> model()Returns the value of themodelrecord component.pose()Returns the value of theposerecord component.net.minecraft.client.renderer.rendertype.RenderTypeReturns the value of therenderTyperecord component.Returns the value of theselectionrecord component.net.minecraft.world.entity.EquipmentSlotslot()Returns the value of theslotrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Surface
public Surface(net.minecraft.world.entity.EquipmentSlot slot, net.minecraft.client.model.Model<BedrockPlayerAttachables.Draw> model, BedrockPlayerControllers.Surface selection, Map<String, BedrockBoneAnimation.Transform> pose, BedrockAttachableBindings.Resolved bindings, net.minecraft.client.renderer.rendertype.RenderType renderType) Creates an instance of aSurfacerecord class.- Parameters:
slot- the value for theslotrecord componentmodel- the value for themodelrecord componentselection- the value for theselectionrecord componentpose- the value for theposerecord componentbindings- the value for thebindingsrecord componentrenderType- the value for therenderTyperecord component
-
-
Method Details
-
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). -
slot
public net.minecraft.world.entity.EquipmentSlot slot()Returns the value of theslotrecord component.- Returns:
- the value of the
slotrecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
selection
Returns the value of theselectionrecord component.- Returns:
- the value of the
selectionrecord component
-
pose
Returns the value of theposerecord component.- Returns:
- the value of the
poserecord component
-
bindings
Returns the value of thebindingsrecord component.- Returns:
- the value of the
bindingsrecord component
-
renderType
public net.minecraft.client.renderer.rendertype.RenderType renderType()Returns the value of therenderTyperecord component.- Returns:
- the value of the
renderTyperecord component
-