Record Class PluginSettings.MenuSettings
java.lang.Object
java.lang.Record
dev.despical.particletext.config.PluginSettings.MenuSettings
- Enclosing class:
PluginSettings
public static record PluginSettings.MenuSettings(String title, int rows, org.bukkit.Material enabledMaterial, org.bukkit.Material disabledMaterial, org.bukkit.Material previousPageMaterial, org.bukkit.Material nextPageMaterial, org.bukkit.Material emptyMaterial, org.bukkit.Material decorationMaterial, org.bukkit.Sound openSound, org.bukkit.Sound pageChangeSound, org.bukkit.Sound teleportSound, org.bukkit.Sound enabledSound, org.bukkit.Sound disabledSound)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMenuSettings(String title, int rows, org.bukkit.Material enabledMaterial, org.bukkit.Material disabledMaterial, org.bukkit.Material previousPageMaterial, org.bukkit.Material nextPageMaterial, org.bukkit.Material emptyMaterial, org.bukkit.Material decorationMaterial, org.bukkit.Sound openSound, org.bukkit.Sound pageChangeSound, org.bukkit.Sound teleportSound, org.bukkit.Sound enabledSound, org.bukkit.Sound disabledSound) Creates an instance of aMenuSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.MaterialReturns the value of thedecorationMaterialrecord component.org.bukkit.MaterialReturns the value of thedisabledMaterialrecord component.org.bukkit.SoundReturns the value of thedisabledSoundrecord component.org.bukkit.MaterialReturns the value of theemptyMaterialrecord component.org.bukkit.MaterialReturns the value of theenabledMaterialrecord component.org.bukkit.SoundReturns the value of theenabledSoundrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.bukkit.MaterialReturns the value of thenextPageMaterialrecord component.org.bukkit.SoundReturns the value of theopenSoundrecord component.org.bukkit.SoundReturns the value of thepageChangeSoundrecord component.org.bukkit.MaterialReturns the value of thepreviousPageMaterialrecord component.introws()Returns the value of therowsrecord component.org.bukkit.SoundReturns the value of theteleportSoundrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MenuSettings
public MenuSettings(String title, int rows, org.bukkit.Material enabledMaterial, org.bukkit.Material disabledMaterial, org.bukkit.Material previousPageMaterial, org.bukkit.Material nextPageMaterial, org.bukkit.Material emptyMaterial, org.bukkit.Material decorationMaterial, org.bukkit.Sound openSound, org.bukkit.Sound pageChangeSound, org.bukkit.Sound teleportSound, org.bukkit.Sound enabledSound, org.bukkit.Sound disabledSound) Creates an instance of aMenuSettingsrecord class.- Parameters:
title- the value for thetitlerecord componentrows- the value for therowsrecord componentenabledMaterial- the value for theenabledMaterialrecord componentdisabledMaterial- the value for thedisabledMaterialrecord componentpreviousPageMaterial- the value for thepreviousPageMaterialrecord componentnextPageMaterial- the value for thenextPageMaterialrecord componentemptyMaterial- the value for theemptyMaterialrecord componentdecorationMaterial- the value for thedecorationMaterialrecord componentopenSound- the value for theopenSoundrecord componentpageChangeSound- the value for thepageChangeSoundrecord componentteleportSound- the value for theteleportSoundrecord componentenabledSound- the value for theenabledSoundrecord componentdisabledSound- the value for thedisabledSoundrecord 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. -
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
rows
public int rows()Returns the value of therowsrecord component.- Returns:
- the value of the
rowsrecord component
-
enabledMaterial
public org.bukkit.Material enabledMaterial()Returns the value of theenabledMaterialrecord component.- Returns:
- the value of the
enabledMaterialrecord component
-
disabledMaterial
public org.bukkit.Material disabledMaterial()Returns the value of thedisabledMaterialrecord component.- Returns:
- the value of the
disabledMaterialrecord component
-
previousPageMaterial
public org.bukkit.Material previousPageMaterial()Returns the value of thepreviousPageMaterialrecord component.- Returns:
- the value of the
previousPageMaterialrecord component
-
nextPageMaterial
public org.bukkit.Material nextPageMaterial()Returns the value of thenextPageMaterialrecord component.- Returns:
- the value of the
nextPageMaterialrecord component
-
emptyMaterial
public org.bukkit.Material emptyMaterial()Returns the value of theemptyMaterialrecord component.- Returns:
- the value of the
emptyMaterialrecord component
-
decorationMaterial
public org.bukkit.Material decorationMaterial()Returns the value of thedecorationMaterialrecord component.- Returns:
- the value of the
decorationMaterialrecord component
-
openSound
public org.bukkit.Sound openSound()Returns the value of theopenSoundrecord component.- Returns:
- the value of the
openSoundrecord component
-
pageChangeSound
public org.bukkit.Sound pageChangeSound()Returns the value of thepageChangeSoundrecord component.- Returns:
- the value of the
pageChangeSoundrecord component
-
teleportSound
public org.bukkit.Sound teleportSound()Returns the value of theteleportSoundrecord component.- Returns:
- the value of the
teleportSoundrecord component
-
enabledSound
public org.bukkit.Sound enabledSound()Returns the value of theenabledSoundrecord component.- Returns:
- the value of the
enabledSoundrecord component
-
disabledSound
public org.bukkit.Sound disabledSound()Returns the value of thedisabledSoundrecord component.- Returns:
- the value of the
disabledSoundrecord component
-