Record Class ClientPart.Properties
java.lang.Object
java.lang.Record
appeng.client.api.model.parts.ClientPart.Properties
- Record Components:
requireCableConnection- A solid part indicates that the rendering requires a cable connection, which will also result in creating an intersection for the cable.
- Enclosing class:
ClientPart
Additional render properties for the cable part model.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ClientPart.Propertiesstatic final com.mojang.serialization.MapCodec<ClientPart.Properties> -
Constructor Summary
ConstructorsConstructorDescriptionProperties(boolean requireCableConnection) Creates an instance of aPropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of therequireCableConnectionrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT
-
MAP_CODEC
-
-
Constructor Details
-
Properties
public Properties(boolean requireCableConnection) Creates an instance of aPropertiesrecord class.- Parameters:
requireCableConnection- the value for therequireCableConnectionrecord 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 with thecomparemethod from their corresponding wrapper classes. -
requireCableConnection
public boolean requireCableConnection()Returns the value of therequireCableConnectionrecord component.- Returns:
- the value of the
requireCableConnectionrecord component
-