java.lang.Object
net.darkhax.bookshelf.common.impl.data.conditions.ModLoaded
All Implemented Interfaces:
ILoadCondition

public class ModLoaded extends Object implements ILoadCondition
This load condition will test that an array of mod IDs are all loaded.
  • Field Details

    • TYPE_ID

      public static final net.minecraft.resources.ResourceLocation TYPE_ID
    • TYPE

      public static final CachedSupplier<ConditionType> TYPE
    • CODEC

      public static com.mojang.serialization.MapCodec<ModLoaded> CODEC
  • Method Details

    • allowLoading

      public boolean allowLoading()
      Description copied from interface: ILoadCondition
      Tests if the condition has been met or not.
      Specified by:
      allowLoading in interface ILoadCondition
      Returns:
      Has the condition been met?
    • getRequiredMods

      public Set<String> getRequiredMods()
    • getType

      public ConditionType getType()
      Description copied from interface: ILoadCondition
      Gets the type of the condition. This is required for serializing conditions.
      Specified by:
      getType in interface ILoadCondition
      Returns:
      The type of the condition.