Class Energy

java.lang.Object
fr.robie.machineengine.api.resource.Energy

public final class Energy extends Object
MachineEngine's energy, machineengine:energy: one category holding one resource type, shared by every addon and definition (D29). Its unit and scale are set in config.yml (resources.energy) and read when it is built.
  • Field Details

    • KEY

      public static final net.kyori.adventure.key.Key KEY
    • UNIT

      public static final ConfigKey<String> UNIT
    • SCALE

      public static final ConfigKey<Integer> SCALE
  • Method Details

    • category

      @NotNull public static @NotNull ResourceCategory category()
      The category machineengine:energy, with the configured unit and scale.
    • type

      @NotNull public static @NotNull ResourceType type()
      The resource type machineengine:energy.
    • is

      @NotNull public static @NotNull ResourcePredicate is()
      Matches energy.