Class ModServerConfig

java.lang.Object
net.minheur.mhm_bitsnbobs.config.ModServerConfig

public class ModServerConfig extends Object
Adds config file for our mod.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraftforge.common.ForgeConfigSpec.Builder
    The builder for config
    static final net.minecraftforge.common.ForgeConfigSpec
    The builder
    static final net.minecraftforge.common.ForgeConfigSpec.BooleanValue
    This controls if the /spawn comment is usable
    static final net.minecraftforge.common.ForgeConfigSpec.IntValue
    This is the X coordinate of the spawn
    static final net.minecraftforge.common.ForgeConfigSpec.IntValue
    This is the Y coordinate of the spawn
    static final net.minecraftforge.common.ForgeConfigSpec.IntValue
    This is the Z coordinate of the spawn
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
     
    static net.minecraft.core.BlockPos
     
    static void
    setSpawnEnabled(boolean enabled)
     
    static void
    setSpawnPos(net.minecraft.core.BlockPos pPos)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • BUILDER

      public static final net.minecraftforge.common.ForgeConfigSpec.Builder BUILDER
      The builder for config
    • CONFIG

      public static final net.minecraftforge.common.ForgeConfigSpec CONFIG
      The builder
    • SPAWN_ENABLED

      public static final net.minecraftforge.common.ForgeConfigSpec.BooleanValue SPAWN_ENABLED
      This controls if the /spawn comment is usable
    • SPAWN_X

      public static final net.minecraftforge.common.ForgeConfigSpec.IntValue SPAWN_X
      This is the X coordinate of the spawn
    • SPAWN_Y

      public static final net.minecraftforge.common.ForgeConfigSpec.IntValue SPAWN_Y
      This is the Y coordinate of the spawn
    • SPAWN_Z

      public static final net.minecraftforge.common.ForgeConfigSpec.IntValue SPAWN_Z
      This is the Z coordinate of the spawn
  • Constructor Details

    • ModServerConfig

      public ModServerConfig()
  • Method Details

    • getSpawnEnabled

      public static boolean getSpawnEnabled()
    • setSpawnEnabled

      public static void setSpawnEnabled(boolean enabled)
    • getSpawnPos

      public static net.minecraft.core.BlockPos getSpawnPos()
    • setSpawnPos

      public static void setSpawnPos(net.minecraft.core.BlockPos pPos)