Enum Class Mods

java.lang.Object
java.lang.Enum<Mods>
purplecreate.tramways.compat.Mods
All Implemented Interfaces:
Serializable, Comparable<Mods>, Constable

public enum Mods extends Enum<Mods>
  • Enum Constant Details

    • CREATERAILWAYSNAVIGATOR

      public static final Mods CREATERAILWAYSNAVIGATOR
    • RAILWAYS

      public static final Mods RAILWAYS
  • Field Details

  • Method Details

    • values

      public static Mods[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Mods valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • modLoaded

      public static boolean modLoaded(String id)
    • loaded

      public boolean loaded()
    • ifLoadedRun

      public void ifLoadedRun(Supplier<Runnable> supplier)
    • rl

      public net.minecraft.resources.ResourceLocation rl(String path)
    • getBlock

      public net.minecraft.world.level.block.Block getBlock(String path)
    • isBlock

      public boolean isBlock(String path, net.minecraft.world.level.block.state.BlockState state)
    • isBlock

      public boolean isBlock(String path, net.minecraft.world.level.block.Block block)