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
    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
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder
    any()
     
    @NotNull net.minecraft.world.level.storage.loot.predicates.LootItemConditionType
     
    static net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder
    of(@NotNull net.minecraft.tags.TagKey<net.minecraft.world.level.biome.Biome> category)
     
    boolean
    test(@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, 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
  • 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:
      getType in interface net.minecraft.world.level.storage.loot.predicates.LootItemCondition
    • test

      public boolean test(@NotNull @NotNull net.minecraft.world.level.storage.loot.LootContext lootContext)
      Specified by:
      test in interface Predicate<net.minecraft.world.level.storage.loot.LootContext>