Record Class BlockMountAPI.Mounted
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.mounts.BlockMountAPI.Mounted
- All Implemented Interfaces:
BlockMountAPI.BlockMountResult
- Enclosing class:
BlockMountAPI
public static record BlockMountAPI.Mounted(com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType, MountedComponent component)
extends Record
implements BlockMountAPI.BlockMountResult
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockTypeThe field for theblockTyperecord component.private final MountedComponentThe field for thecomponentrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionMounted(com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType, MountedComponent component) Creates an instance of aMountedrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.hypixel.hytale.server.core.asset.type.blocktype.config.BlockTypeReturns the value of theblockTyperecord component.Returns the value of thecomponentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
blockType
private final com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockTypeThe field for theblockTyperecord component. -
component
The field for thecomponentrecord component.
-
-
Constructor Details
-
Mounted
public Mounted(com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType, MountedComponent component) Creates an instance of aMountedrecord class.- Parameters:
blockType- the value for theblockTyperecord componentcomponent- the value for thecomponentrecord 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). -
blockType
public com.hypixel.hytale.server.core.asset.type.blocktype.config.BlockType blockType()Returns the value of theblockTyperecord component.- Returns:
- the value of the
blockTyperecord component
-
component
Returns the value of thecomponentrecord component.- Returns:
- the value of the
componentrecord component
-