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

public class Not extends Object implements ILoadCondition
This load condition will test an array of sub-conditions and make sure none of them are met.
  • 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<Not> CODEC
  • Method Details

    • getConditions

      public List<ILoadCondition> getConditions()
    • 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?
    • 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.