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 ClassesNested classes/interfaces inherited from interface net.minecraft.world.level.storage.loot.predicates.LootItemCondition
net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected 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
ConstructorsConstructorDescriptionParameterSuppliedLootCondition(net.minecraft.world.level.storage.loot.parameters.LootContextParam<?>[] params) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.storage.loot.predicates.LootItemConditionTypegetType()static final voidmakeKnown(net.minecraft.world.level.storage.loot.parameters.LootContextParam<?> param) static final voidmakeKnown(net.minecraft.world.level.storage.loot.parameters.LootContextParam<?>... params) booleantest(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, waitMethods inherited from interface net.minecraft.world.level.storage.loot.LootContextUser
getReferencedContextParams, validate
-
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) -
getType
public net.minecraft.world.level.storage.loot.predicates.LootItemConditionType getType()- Specified by:
getTypein interfacenet.minecraft.world.level.storage.loot.predicates.LootItemCondition
-