Package com.minecolonies.api.loot
Class GenerateSupplyLoot
java.lang.Object
com.minecolonies.api.loot.GenerateSupplyLoot
- 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 GenerateSupplyLoot
extends Object
implements net.minecraft.world.level.storage.loot.predicates.LootItemCondition
Loot condition that checks whether supply loot is enabled in configuration.
-
Nested Class Summary
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
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<GenerateSupplyLoot> Fields inherited from interface net.minecraft.world.level.storage.loot.predicates.LootItemCondition
DIRECT_CODEC, TYPED_CODEC -
Method Summary
Modifier and TypeMethodDescription@NotNull net.minecraft.world.level.storage.loot.predicates.LootItemConditionTypegetType()booleantest(@NotNull net.minecraft.world.level.storage.loot.LootContext lootContext) static net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builderwhen()Create a loot condition.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
-
CODEC
-
-
Method Details
-
when
public static net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder when()Create a loot condition. -
getType
@NotNull public @NotNull net.minecraft.world.level.storage.loot.predicates.LootItemConditionType getType()- Specified by:
getTypein interfacenet.minecraft.world.level.storage.loot.predicates.LootItemCondition
-
test
public boolean test(@NotNull @NotNull net.minecraft.world.level.storage.loot.LootContext lootContext)
-