Class GenTierLevel
java.lang.Object
me.metallicgoat.tweaksaddon.api.gentiers.GenTierLevel
-
Constructor Summary
ConstructorsConstructorDescriptionGenTierLevel(int tier, String tierName, GenTierHandler handler, Duration time, @Nullable String earnMessage, @Nullable Sound earnSound) -
Method Summary
Modifier and TypeMethodDescriptionvoidbroadcastEarn(Arena arena) Plays the sound, and broadcasts the message of this gen tier.@Nullable GenTierLevelGets the next level after this one has been reached.@Nullable GenTierLevelGets the previous level before this one has been reached.@Nullable DropTypegetType()Returns the DropType of the spawners this level will affect Will returnnullis level does not affect as spawner (i.e.
-
Constructor Details
-
GenTierLevel
public GenTierLevel(int tier, String tierName, GenTierHandler handler, Duration time, @Nullable @Nullable String earnMessage, @Nullable @Nullable Sound earnSound)
-
-
Method Details
-
broadcastEarn
Plays the sound, and broadcasts the message of this gen tier. Used when this level becomes active- Parameters:
arena- where this level is active on
-
getType
Returns the DropType of the spawners this level will affect Will returnnullis level does not affect as spawner (i.e. Bread break tier)- Returns:
- the DropType this level aims to affect if applicable
-
getNextLevel
Gets the next level after this one has been reached.- Returns:
- the next GenTierLevel, or
nullif this is the highest level
-
getPreviousLevel
Gets the previous level before this one has been reached.- Returns:
- the previous GenTierLevel, or
nullif this is the first level
-