Class ParameterSuppliedLootCondition

java.lang.Object
com.petrolpark.data.loot.predicate.ParameterSuppliedLootCondition
All Implemented Interfaces:
Predicate<net.minecraft.world.level.storage.loot.LootContext>, net.minecraft.world.level.storage.loot.LootContextUser, net.minecraft.world.level.storage.loot.predicates.LootItemCondition

public class ParameterSuppliedLootCondition extends Object implements net.minecraft.world.level.storage.loot.predicates.LootItemCondition
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from interface net.minecraft.world.level.storage.loot.predicates.LootItemCondition

    net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final Map<net.minecraft.resources.ResourceLocation,net.minecraft.world.level.storage.loot.parameters.LootContextParam<?>>
     
    final net.minecraft.world.level.storage.loot.parameters.LootContextParam<?>[]
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ParameterSuppliedLootCondition(net.minecraft.world.level.storage.loot.parameters.LootContextParam<?>[] params)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.level.storage.loot.predicates.LootItemConditionType
     
    static final void
    makeKnown(net.minecraft.world.level.storage.loot.parameters.LootContextParam<?> param)
     
    static final void
    makeKnown(net.minecraft.world.level.storage.loot.parameters.LootContextParam<?>... params)
     
    boolean
    test(net.minecraft.world.level.storage.loot.LootContext context)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.world.level.storage.loot.LootContextUser

    getReferencedContextParams, validate

    Methods inherited from interface java.util.function.Predicate

    and, negate, or
  • Field Details

    • KNOWN_PARAMS

      protected static final Map<net.minecraft.resources.ResourceLocation,net.minecraft.world.level.storage.loot.parameters.LootContextParam<?>> KNOWN_PARAMS
    • params

      public final net.minecraft.world.level.storage.loot.parameters.LootContextParam<?>[] params
  • Constructor Details

    • ParameterSuppliedLootCondition

      public ParameterSuppliedLootCondition(net.minecraft.world.level.storage.loot.parameters.LootContextParam<?>[] params)
  • Method Details

    • makeKnown

      public static final void makeKnown(net.minecraft.world.level.storage.loot.parameters.LootContextParam<?>... params)
    • makeKnown

      public static final void makeKnown(net.minecraft.world.level.storage.loot.parameters.LootContextParam<?> param)
    • test

      public boolean test(net.minecraft.world.level.storage.loot.LootContext context)
      Specified by:
      test in interface Predicate<net.minecraft.world.level.storage.loot.LootContext>
    • getType

      public net.minecraft.world.level.storage.loot.predicates.LootItemConditionType getType()
      Specified by:
      getType in interface net.minecraft.world.level.storage.loot.predicates.LootItemCondition