Class BasicNeedsConfig
java.lang.Object
me.fami6xx.rpuniverse.core.basicneeds.BasicNeedsConfig
This class represents the configuration for the basic needs of the player in the game.
The configuration includes settings for hunger, thirst, poop, and pee.
-
Constructor Summary
ConstructorsConstructorDescriptionBasicNeedsConfig(RPUniverse plugin)Constructs a new BasicNeedsConfig with the given plugin. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the amount of pee added.intReturns the amount of poop added.intReturns the interval of the basic needs.Returns the needed mode to edit.intReturns the amount of hunger removed.intReturns the amount of thirst removed.booleanReturns whether the basic needs are enabled.booleanReturns whether permissions are preferred over mode for edit.
-
Constructor Details
-
BasicNeedsConfig
Constructs a new BasicNeedsConfig with the given plugin.- Parameters:
plugin- the plugin used to get the configuration
-
-
Method Details
-
getInterval
public int getInterval()Returns the interval of the basic needs.- Returns:
- the interval
-
isPreferPermissionsOverModeForEdit
public boolean isPreferPermissionsOverModeForEdit()Returns whether permissions are preferred over mode for edit.- Returns:
- true if permissions are preferred, false otherwise
-
getNeededModeToEdit
Returns the needed mode to edit.- Returns:
- the needed mode to edit
-
getRemovedHunger
public int getRemovedHunger()Returns the amount of hunger removed.- Returns:
- the amount of hunger removed
-
getRemovedThirst
public int getRemovedThirst()Returns the amount of thirst removed.- Returns:
- the amount of thirst removed
-
getAddedPoop
public int getAddedPoop()Returns the amount of poop added.- Returns:
- the amount of poop added
-
getAddedPee
public int getAddedPee()Returns the amount of pee added.- Returns:
- the amount of pee added
-
isEnabled
public boolean isEnabled()Returns whether the basic needs are enabled.- Returns:
- true if the basic needs are enabled, false otherwise
-