Class MicromissileDefaults
java.lang.Object
me.desht.pneumaticcraft.common.config.subconfig.AuxConfigJson
me.desht.pneumaticcraft.common.config.subconfig.MicromissileDefaults
- All Implemented Interfaces:
IAuxConfig
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface me.desht.pneumaticcraft.common.config.subconfig.IAuxConfig
IAuxConfig.Sidedness -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MicromissileDefaults.Entrystatic final MicromissileDefaultsFields inherited from class me.desht.pneumaticcraft.common.config.subconfig.AuxConfigJson
file -
Method Summary
Modifier and TypeMethodDescriptionGet the filename (within the "pneumaticcraft/" folder in the top-level config directory) where this config should be stored.getDefaults(net.minecraft.world.entity.player.Player player) Which side should these configs be loaded on? If configs are only relevant to client or server, use this to skip loading them on the other side.protected voidreadFromJson(com.google.gson.JsonObject json) voidsetDefaults(net.minecraft.world.entity.player.Player player, MicromissileDefaults.Entry entry) protected voidwriteToJson(com.google.gson.JsonObject json) Methods inherited from class me.desht.pneumaticcraft.common.config.subconfig.AuxConfigJson
postInit, preInit, tryWriteToFile, writeToFileMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.desht.pneumaticcraft.common.config.subconfig.IAuxConfig
clear, useWorldSpecificDir
-
Field Details
-
INSTANCE
-
FALLBACK
-
-
Method Details
-
writeToJson
protected void writeToJson(com.google.gson.JsonObject json) - Specified by:
writeToJsonin classAuxConfigJson
-
readFromJson
protected void readFromJson(com.google.gson.JsonObject json) - Specified by:
readFromJsonin classAuxConfigJson
-
getConfigFilename
Description copied from interface:IAuxConfigGet the filename (within the "pneumaticcraft/" folder in the top-level config directory) where this config should be stored.- Returns:
- the config file name
-
getSidedness
Description copied from interface:IAuxConfigWhich side should these configs be loaded on? If configs are only relevant to client or server, use this to skip loading them on the other side.- Returns:
- the side configs are relevant to
-
setDefaults
public void setDefaults(net.minecraft.world.entity.player.Player player, MicromissileDefaults.Entry entry) -
getDefaults
@Nonnull public MicromissileDefaults.Entry getDefaults(net.minecraft.world.entity.player.Player player)
-