Class VanillaDeathChest
- java.lang.Object
-
- com.therandomlabs.vanilladeathchest.VanillaDeathChest
-
- All Implemented Interfaces:
net.fabricmc.api.ModInitializer
public final class VanillaDeathChest extends Object implements net.fabricmc.api.ModInitializer
The main VanillaDeathChest class.
-
-
Field Summary
Fields Modifier and Type Field Description static org.apache.logging.log4j.LoggerloggerThe VanillaDeathChest logger.static StringMOD_IDThe VanillaDeathChest mod ID.static @Nullable net.minecraft.world.GameRules.Key<net.minecraft.world.GameRules.BooleanRule>SPAWN_DEATH_CHESTSThe game rule that controls whether death chests should be spawned.
-
Constructor Summary
Constructors Constructor Description VanillaDeathChest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VDCConfigconfig()Returns the VanillaDeathChest configuration.voidonInitialize()static voidreloadConfig()Reloads the VanillaDeathChest configuration from disk.
-
-
-
Field Detail
-
MOD_ID
public static final String MOD_ID
The VanillaDeathChest mod ID.- See Also:
- Constant Field Values
-
logger
public static final org.apache.logging.log4j.Logger logger
The VanillaDeathChest logger. This should only be used by VanillaDeathChest.
-
SPAWN_DEATH_CHESTS
public static final @Nullable net.minecraft.world.GameRules.Key<net.minecraft.world.GameRules.BooleanRule> SPAWN_DEATH_CHESTS
The game rule that controls whether death chests should be spawned.
-
-
Method Detail
-
onInitialize
public void onInitialize()
- Specified by:
onInitializein interfacenet.fabricmc.api.ModInitializer
-
config
public static VDCConfig config()
Returns the VanillaDeathChest configuration.- Returns:
- a
VDCConfigobject.
-
reloadConfig
public static void reloadConfig()
Reloads the VanillaDeathChest configuration from disk.
-
-