Class LootTableIdCondition

java.lang.Object
io.github.vampirestudios.vampirelib.loot.LootTableIdCondition
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 LootTableIdCondition extends Object implements net.minecraft.world.level.storage.loot.predicates.LootItemCondition
  • Field Details

    • LOOT_TABLE_ID

      public static final net.minecraft.world.level.storage.loot.predicates.LootItemConditionType LOOT_TABLE_ID
    • UNKNOWN_LOOT_TABLE

      public static final net.minecraft.resources.ResourceLocation UNKNOWN_LOOT_TABLE
  • Method Details

    • builder

      public static LootTableIdCondition.Builder builder(net.minecraft.resources.ResourceLocation targetLootTableId)
    • getType

      public 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(net.minecraft.world.level.storage.loot.LootContext lootContext)
      Specified by:
      test in interface Predicate<net.minecraft.world.level.storage.loot.LootContext>