Contents
Record Class PlayerCreativeSettings
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.core.modules.entity.player.PlayerCreativeSettings
- Record Components:
allowNPCDetection- Whether NPC detection is allowed while in creative mode.respondToHit- Whether the player responds to being hit while in creative mode.placeMode- The active block placement mode while in creative mode.noPhysics- Whether block physics updates are suppressed for this player.activateTriggerVolumes- Whether the player activates trigger volumes while in creative mode.
public record PlayerCreativeSettings(boolean allowNPCDetection, boolean respondToHit, @Nonnull PlaceMode placeMode, int creativeInteractionDistance, boolean showBuilderToolsNotifications, boolean noPhysics, boolean eraserEnabled, boolean activateTriggerVolumes)
extends Record
Represents the creative-specific settings for a player entity.
-
Constructor Summary
ConstructorsConstructorDescriptionEmpty Constructor for aPlayerCreativeSettingsinstance.PlayerCreativeSettings(boolean allowNPCDetection, boolean respondToHit, PlaceMode placeMode, int creativeInteractionDistance, boolean showBuilderToolsNotifications, boolean noPhysics, boolean eraserEnabled, boolean activateTriggerVolumes) Creates an instance of aPlayerCreativeSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theactivateTriggerVolumesrecord component.booleanReturns the value of theallowNPCDetectionrecord component.intReturns the value of thecreativeInteractionDistancerecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theeraserEnabledrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thenoPhysicsrecord component.Returns the value of theplaceModerecord component.booleanReturns the value of therespondToHitrecord component.booleanReturns the value of theshowBuilderToolsNotificationsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PlayerCreativeSettings
public PlayerCreativeSettings()Empty Constructor for aPlayerCreativeSettingsinstance. -
PlayerCreativeSettings
public PlayerCreativeSettings(boolean allowNPCDetection, boolean respondToHit, @Nonnull PlaceMode placeMode, int creativeInteractionDistance, boolean showBuilderToolsNotifications, boolean noPhysics, boolean eraserEnabled, boolean activateTriggerVolumes) Creates an instance of aPlayerCreativeSettingsrecord class.- Parameters:
allowNPCDetection- the value for theallowNPCDetectionrecord componentrespondToHit- the value for therespondToHitrecord componentplaceMode- the value for theplaceModerecord componentcreativeInteractionDistance- the value for thecreativeInteractionDistancerecord componentshowBuilderToolsNotifications- the value for theshowBuilderToolsNotificationsrecord componentnoPhysics- the value for thenoPhysicsrecord componenteraserEnabled- the value for theeraserEnabledrecord componentactivateTriggerVolumes- the value for theactivateTriggerVolumesrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
allowNPCDetection
public boolean allowNPCDetection()Returns the value of theallowNPCDetectionrecord component.- Returns:
- the value of the
allowNPCDetectionrecord component
-
respondToHit
public boolean respondToHit()Returns the value of therespondToHitrecord component.- Returns:
- the value of the
respondToHitrecord component
-
placeMode
-
creativeInteractionDistance
public int creativeInteractionDistance()Returns the value of thecreativeInteractionDistancerecord component.- Returns:
- the value of the
creativeInteractionDistancerecord component
-
showBuilderToolsNotifications
public boolean showBuilderToolsNotifications()Returns the value of theshowBuilderToolsNotificationsrecord component.- Returns:
- the value of the
showBuilderToolsNotificationsrecord component
-
noPhysics
-
eraserEnabled
public boolean eraserEnabled()Returns the value of theeraserEnabledrecord component.- Returns:
- the value of the
eraserEnabledrecord component
-
activateTriggerVolumes
public boolean activateTriggerVolumes()Returns the value of theactivateTriggerVolumesrecord component.- Returns:
- the value of the
activateTriggerVolumesrecord component
-