Class FrequenciesImpl
java.lang.Object
com.codinglitch.simpleradio.radio.FrequenciesImpl
- All Implemented Interfaces:
Frequencies
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Stringstatic Frequency.Modulationstatic intstatic Stringstatic int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanvoidclose()@Nullable FrequencyfromTag(net.minecraft.nbt.CompoundTag tag) voidget()get(String frequency, Frequency.Modulation modulation) static intgetFrequencyIndex(String frequency, Frequency.Modulation modulation) getOrCreate(String frequency, Frequency.Modulation modulation) getWithin(String frequency, Frequency.Modulation modulation, int distance) incrementFrequency(String frequency, int amount) modulationOf(String shorthand) static voidvoidwithin(String frequency, Frequency.Modulation modulation, int distance)
-
Field Details
-
DEFAULT_FREQUENCY
-
DEFAULT_MODULATION
-
FREQUENCY_DIGITS
public static int FREQUENCY_DIGITS -
MAX_FREQUENCY
public static int MAX_FREQUENCY -
FREQUENCY_PATTERN
-
-
Constructor Details
-
FrequenciesImpl
public FrequenciesImpl()
-
-
Method Details
-
close
public void close() -
defaultFrequency
- Specified by:
defaultFrequencyin interfaceFrequencies
-
defaultModulation
- Specified by:
defaultModulationin interfaceFrequencies
-
get
- Specified by:
getin interfaceFrequencies
-
get
- Specified by:
getin interfaceFrequencies
-
getOrCreate
- Specified by:
getOrCreatein interfaceFrequencies
-
tryParse
- Specified by:
tryParsein interfaceFrequencies
-
add
- Specified by:
addin interfaceFrequencies
-
remove
- Specified by:
removein interfaceFrequencies
-
modulationOf
- Specified by:
modulationOfin interfaceFrequencies
-
check
- Specified by:
checkin interfaceFrequencies
-
incrementFrequency
- Specified by:
incrementFrequencyin interfaceFrequencies
-
getWithin
public List<org.apache.commons.lang3.tuple.Pair<Integer,Frequency>> getWithin(String frequency, Frequency.Modulation modulation, int distance) - Specified by:
getWithinin interfaceFrequencies
-
within
- Specified by:
withinin interfaceFrequencies
-
getFrequencyIndex
-
fromTag
- Specified by:
fromTagin interfaceFrequencies
-
onLexiconRevision
public static void onLexiconRevision() -
garbageCollect
public void garbageCollect()
-