Contents
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(BlockType blockType, MountedComponent component)
extends Record
implements BlockMountAPI.BlockMountResult
-
Constructor Summary
ConstructorsConstructorDescriptionMounted(BlockType blockType, MountedComponent component) Creates an instance of aMountedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.
-
Constructor Details
-
Mounted
Creates an instance of aMountedrecord class.- Parameters:
blockType- the value for theblockTyperecord componentcomponent- the value for thecomponentrecord 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). -
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
-