Record Class PlayerDisplayGuiModels
java.lang.Object
java.lang.Record
net.litetex.capes.menu.preview.render.PlayerDisplayGuiModels
public record PlayerDisplayGuiModels(net.minecraft.client.render.entity.model.PlayerEntityModel player, net.minecraft.client.render.entity.model.ElytraEntityModel elytra, net.minecraft.client.model.ModelPart cape)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerDisplayGuiModels(net.minecraft.client.render.entity.model.PlayerEntityModel player, net.minecraft.client.render.entity.model.ElytraEntityModel elytra, net.minecraft.client.model.ModelPart cape) Creates an instance of aPlayerDisplayGuiModelsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.client.model.ModelPartcape()Returns the value of thecaperecord component.net.minecraft.client.render.entity.model.ElytraEntityModelelytra()Returns the value of theelytrarecord 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.render.entity.model.PlayerEntityModelplayer()Returns the value of theplayerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PlayerDisplayGuiModels
public PlayerDisplayGuiModels(net.minecraft.client.render.entity.model.PlayerEntityModel player, net.minecraft.client.render.entity.model.ElytraEntityModel elytra, net.minecraft.client.model.ModelPart cape) Creates an instance of aPlayerDisplayGuiModelsrecord class.- Parameters:
player- the value for theplayerrecord componentelytra- the value for theelytrarecord componentcape- the value for thecaperecord component
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
player
public net.minecraft.client.render.entity.model.PlayerEntityModel player()Returns the value of theplayerrecord component.- Returns:
- the value of the
playerrecord component
-
elytra
public net.minecraft.client.render.entity.model.ElytraEntityModel elytra()Returns the value of theelytrarecord component.- Returns:
- the value of the
elytrarecord component
-
cape
public net.minecraft.client.model.ModelPart cape()Returns the value of thecaperecord component.- Returns:
- the value of the
caperecord component
-