Class WorldFixerSettings
java.lang.Object
ua.mcchickenstudio.opencreative.settings.WorldFixerSettings
WorldFixerSettings
This class represents a settings of world fixer.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns maximum amount of vehicle collisions in the last 0.5 seconds before its removal.@NotNull WorldFixerSettings.RecipesUnlockerReturns option, when all crafting recipes should be unlocked for player.voidload()Loads settings of world fixer from configuration.booleanChecks whether bad entities in air should be fixed.booleanChecks whether vehicles with too many collisions should be destroyed.
-
Constructor Details
-
WorldFixerSettings
public WorldFixerSettings()
-
-
Method Details
-
load
public void load()Loads settings of world fixer from configuration. -
shouldFixVehicleCollisions
public boolean shouldFixVehicleCollisions()Checks whether vehicles with too many collisions should be destroyed.- Returns:
- true - will be fixed, false - not.
-
shouldFixBadEntitiesInAir
public boolean shouldFixBadEntitiesInAir()Checks whether bad entities in air should be fixed.- Returns:
- true - will be fixed, false - not.
-
getMaxMinecartCollisionsAmount
public int getMaxMinecartCollisionsAmount()Returns maximum amount of vehicle collisions in the last 0.5 seconds before its removal.- Returns:
- limit of vehicle collisions.
-
getRecipesUnlocker
Returns option, when all crafting recipes should be unlocked for player.- Returns:
- recipes unlocker type.
-