Class Frequency
java.lang.Object
com.codinglitch.simpleradio.core.central.Frequency
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Stringstatic Frequency.Modulationfinal Stringstatic intstatic Stringfinal List<RadioChannel>static intfinal Frequency.Modulation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddListener(UUID owner) static @Nullable FrequencyfromTag(net.minecraft.nbt.CompoundTag tag) getChannel(UUID player) getChannel(net.minecraft.world.entity.player.Player player) static intgetFrequency(String string, Frequency.Modulation modulation) static FrequencygetOrCreateFrequency(String frequency, Frequency.Modulation modulation) static StringincrementFrequency(String frequency, int amount) static @Nullable Frequency.ModulationmodulationOf(String shorthand) static voidvoidremoveListener(UUID player) voidremoveListener(net.minecraft.world.entity.player.Player player) @Nullable RadioChanneltryAddListener(UUID owner) static boolean
-
Field Details
-
DEFAULT_FREQUENCY
-
DEFAULT_MODULATION
-
FREQUENCY_DIGITS
public static int FREQUENCY_DIGITS -
MAX_FREQUENCY
public static int MAX_FREQUENCY -
FREQUENCY_PATTERN
-
modulation
-
frequency
-
listeners
-
-
Constructor Details
-
Frequency
-
-
Method Details
-
onLexiconReload
public static void onLexiconReload() -
modulationOf
-
validate
-
incrementFrequency
-
getFrequency
-
getChannel
-
getChannel
-
tryAddListener
-
addListener
-
removeListener
public void removeListener(net.minecraft.world.entity.player.Player player) -
removeListener
-
getOrCreateFrequency
-
fromTag
-