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

public class OnPlatform extends Object implements ILoadCondition
This load condition will test the current mod loading platform.
  • Field Details

    • TYPE_ID

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

      public static final CachedSupplier<ConditionType> TYPE
    • CODEC

      public static final com.mojang.serialization.MapCodec<OnPlatform> 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?
    • getRequiredPlatform

      public String getRequiredPlatform()
    • 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.