Record Class PlayerSettings
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.core.modules.entity.player.PlayerSettings
- All Implemented Interfaces:
Component<EntityStore>,Cloneable
public record PlayerSettings(boolean showEntityMarkers, PickupLocation armorItemsPreferredPickupLocation, PickupLocation weaponAndToolItemsPreferredPickupLocation, PickupLocation usableItemsItemsPreferredPickupLocation, PickupLocation solidBlockItemsPreferredPickupLocation, PickupLocation miscItemsPreferredPickupLocation, PlayerCreativeSettings creativeSettings)
extends Record
implements Component<EntityStore>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PickupLocationThe field for thearmorItemsPreferredPickupLocationrecord component.private final PlayerCreativeSettingsThe field for thecreativeSettingsrecord component.private static final PlayerSettingsprivate final PickupLocationThe field for themiscItemsPreferredPickupLocationrecord component.private final booleanThe field for theshowEntityMarkersrecord component.private final PickupLocationThe field for thesolidBlockItemsPreferredPickupLocationrecord component.private final PickupLocationThe field for theusableItemsItemsPreferredPickupLocationrecord component.private final PickupLocationThe field for theweaponAndToolItemsPreferredPickupLocationrecord component.Fields inherited from interface com.hypixel.hytale.component.Component
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionPlayerSettings(boolean showEntityMarkers, PickupLocation armorItemsPreferredPickupLocation, PickupLocation weaponAndToolItemsPreferredPickupLocation, PickupLocation usableItemsItemsPreferredPickupLocation, PickupLocation solidBlockItemsPreferredPickupLocation, PickupLocation miscItemsPreferredPickupLocation, PlayerCreativeSettings creativeSettings) Creates an instance of aPlayerSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thearmorItemsPreferredPickupLocationrecord component.clone()Returns the value of thecreativeSettingsrecord component.static PlayerSettingsdefaults()final booleanIndicates whether some other object is "equal to" this one.static ComponentType<EntityStore, PlayerSettings> final inthashCode()Returns a hash code value for this object.Returns the value of themiscItemsPreferredPickupLocationrecord component.booleanReturns the value of theshowEntityMarkersrecord component.Returns the value of thesolidBlockItemsPreferredPickupLocationrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theusableItemsItemsPreferredPickupLocationrecord component.Returns the value of theweaponAndToolItemsPreferredPickupLocationrecord component.Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.hypixel.hytale.component.Component
cloneSerializable
-
Field Details
-
showEntityMarkers
private final boolean showEntityMarkersThe field for theshowEntityMarkersrecord component. -
armorItemsPreferredPickupLocation
The field for thearmorItemsPreferredPickupLocationrecord component. -
weaponAndToolItemsPreferredPickupLocation
The field for theweaponAndToolItemsPreferredPickupLocationrecord component. -
usableItemsItemsPreferredPickupLocation
The field for theusableItemsItemsPreferredPickupLocationrecord component. -
solidBlockItemsPreferredPickupLocation
The field for thesolidBlockItemsPreferredPickupLocationrecord component. -
miscItemsPreferredPickupLocation
The field for themiscItemsPreferredPickupLocationrecord component. -
creativeSettings
The field for thecreativeSettingsrecord component. -
INSTANCE
-
-
Constructor Details
-
PlayerSettings
public PlayerSettings(boolean showEntityMarkers, PickupLocation armorItemsPreferredPickupLocation, PickupLocation weaponAndToolItemsPreferredPickupLocation, PickupLocation usableItemsItemsPreferredPickupLocation, PickupLocation solidBlockItemsPreferredPickupLocation, PickupLocation miscItemsPreferredPickupLocation, PlayerCreativeSettings creativeSettings) Creates an instance of aPlayerSettingsrecord class.- Parameters:
showEntityMarkers- the value for theshowEntityMarkersrecord componentarmorItemsPreferredPickupLocation- the value for thearmorItemsPreferredPickupLocationrecord componentweaponAndToolItemsPreferredPickupLocation- the value for theweaponAndToolItemsPreferredPickupLocationrecord componentusableItemsItemsPreferredPickupLocation- the value for theusableItemsItemsPreferredPickupLocationrecord componentsolidBlockItemsPreferredPickupLocation- the value for thesolidBlockItemsPreferredPickupLocationrecord componentmiscItemsPreferredPickupLocation- the value for themiscItemsPreferredPickupLocationrecord componentcreativeSettings- the value for thecreativeSettingsrecord component
-
-
Method Details
-
getComponentType
-
defaults
-
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Overrides:
clonein classObject
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
showEntityMarkers
public boolean showEntityMarkers()Returns the value of theshowEntityMarkersrecord component.- Returns:
- the value of the
showEntityMarkersrecord component
-
armorItemsPreferredPickupLocation
Returns the value of thearmorItemsPreferredPickupLocationrecord component.- Returns:
- the value of the
armorItemsPreferredPickupLocationrecord component
-
weaponAndToolItemsPreferredPickupLocation
Returns the value of theweaponAndToolItemsPreferredPickupLocationrecord component.- Returns:
- the value of the
weaponAndToolItemsPreferredPickupLocationrecord component
-
usableItemsItemsPreferredPickupLocation
Returns the value of theusableItemsItemsPreferredPickupLocationrecord component.- Returns:
- the value of the
usableItemsItemsPreferredPickupLocationrecord component
-
solidBlockItemsPreferredPickupLocation
Returns the value of thesolidBlockItemsPreferredPickupLocationrecord component.- Returns:
- the value of the
solidBlockItemsPreferredPickupLocationrecord component
-
miscItemsPreferredPickupLocation
Returns the value of themiscItemsPreferredPickupLocationrecord component.- Returns:
- the value of the
miscItemsPreferredPickupLocationrecord component
-
creativeSettings
Returns the value of thecreativeSettingsrecord component.- Returns:
- the value of the
creativeSettingsrecord component
-