Package com.minecolonies.api.loot
Class EntityInBiomeTag
java.lang.Object
com.minecolonies.api.loot.EntityInBiomeTag
- 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 EntityInBiomeTag
extends Object
implements net.minecraft.world.level.storage.loot.predicates.LootItemCondition
A loot condition that checks if the entity producing loot is in a biome with a particular tag.
-
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 EntityInBiomeTagstatic final com.mojang.serialization.MapCodec<EntityInBiomeTag> Fields inherited from interface net.minecraft.world.level.storage.loot.predicates.LootItemCondition
DIRECT_CODEC, TYPED_CODEC -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builderany()@NotNull net.minecraft.world.level.storage.loot.predicates.LootItemConditionTypegetType()static net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builderof(@NotNull net.minecraft.tags.TagKey<net.minecraft.world.level.biome.Biome> category) booleantest(@NotNull net.minecraft.world.level.storage.loot.LootContext lootContext) 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
-
ANY
-
CODEC
-
-
Method Details
-
any
public static net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder any() -
of
public static net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder of(@NotNull @NotNull net.minecraft.tags.TagKey<net.minecraft.world.level.biome.Biome> category) -
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)
-