Class ModLootConditions

java.lang.Object
com.minecolonies.api.loot.ModLootConditions

public final class ModLootConditions extends Object
Container class for registering custom loot conditions
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.neoforged.neoforge.registries.DeferredRegister<net.minecraft.world.level.storage.loot.predicates.LootItemConditionType>
     
    static final net.minecraft.resources.ResourceLocation
     
    static final net.neoforged.neoforge.registries.DeferredHolder<net.minecraft.world.level.storage.loot.predicates.LootItemConditionType,net.minecraft.world.level.storage.loot.predicates.LootItemConditionType>
     
    static final net.minecraft.resources.ResourceLocation
     
    static final net.neoforged.neoforge.registries.DeferredHolder<net.minecraft.world.level.storage.loot.predicates.LootItemConditionType,net.minecraft.world.level.storage.loot.predicates.LootItemConditionType>
     
    static final net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder
     
    static final net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder
     
    static final net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder
     
    static final net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder
     
    static final net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder
     
    static final net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder
     
    static final net.minecraft.resources.ResourceLocation
     
    static final net.neoforged.neoforge.registries.DeferredHolder<net.minecraft.world.level.storage.loot.predicates.LootItemConditionType,net.minecraft.world.level.storage.loot.predicates.LootItemConditionType>
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder
    doesNotHaveShearsOrSilkTouch(net.minecraft.core.HolderLookup.RegistryLookup<net.minecraft.world.item.enchantment.Enchantment> enchantments)
     
    static net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder
     
    static net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder
     
    static net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder
    hasShearsOrSilkTouch(net.minecraft.core.HolderLookup.RegistryLookup<net.minecraft.world.item.enchantment.Enchantment> enchantments)
     
    static net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder
    hasSilkTouch(net.minecraft.core.HolderLookup.RegistryLookup<net.minecraft.world.item.enchantment.Enchantment> enchantments)
     
    static void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DEFERRED_REGISTER

      public static final net.neoforged.neoforge.registries.DeferredRegister<net.minecraft.world.level.storage.loot.predicates.LootItemConditionType> DEFERRED_REGISTER
    • ENTITY_IN_BIOME_TAG_ID

      public static final net.minecraft.resources.ResourceLocation ENTITY_IN_BIOME_TAG_ID
    • RESEARCH_UNLOCKED_ID

      public static final net.minecraft.resources.ResourceLocation RESEARCH_UNLOCKED_ID
    • GENERATE_SUPPLY_LOOT_ID

      public static final net.minecraft.resources.ResourceLocation GENERATE_SUPPLY_LOOT_ID
    • entityInBiomeTag

      public static final net.neoforged.neoforge.registries.DeferredHolder<net.minecraft.world.level.storage.loot.predicates.LootItemConditionType,net.minecraft.world.level.storage.loot.predicates.LootItemConditionType> entityInBiomeTag
    • researchUnlocked

      public static final net.neoforged.neoforge.registries.DeferredHolder<net.minecraft.world.level.storage.loot.predicates.LootItemConditionType,net.minecraft.world.level.storage.loot.predicates.LootItemConditionType> researchUnlocked
    • generateSupplyLoot

      public static final net.neoforged.neoforge.registries.DeferredHolder<net.minecraft.world.level.storage.loot.predicates.LootItemConditionType,net.minecraft.world.level.storage.loot.predicates.LootItemConditionType> generateSupplyLoot
    • HAS_SHEARS

      public static final net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder HAS_SHEARS
    • HAS_NETHERITE_HOE

      public static final net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder HAS_NETHERITE_HOE
    • HAS_DIAMOND_HOE

      public static final net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder HAS_DIAMOND_HOE
    • HAS_IRON_HOE

      public static final net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder HAS_IRON_HOE
    • HAS_GOLDEN_HOE

      public static final net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder HAS_GOLDEN_HOE
    • HAS_HOE

      public static final net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder HAS_HOE
  • Method Details

    • hasShears

      public static net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder hasShears()
    • hasHoe

      public static net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder hasHoe()
    • hasSilkTouch

      public static net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder hasSilkTouch(@NotNull net.minecraft.core.HolderLookup.RegistryLookup<net.minecraft.world.item.enchantment.Enchantment> enchantments)
    • hasShearsOrSilkTouch

      public static net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder hasShearsOrSilkTouch(@NotNull net.minecraft.core.HolderLookup.RegistryLookup<net.minecraft.world.item.enchantment.Enchantment> enchantments)
    • doesNotHaveShearsOrSilkTouch

      public static net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builder doesNotHaveShearsOrSilkTouch(@NotNull net.minecraft.core.HolderLookup.RegistryLookup<net.minecraft.world.item.enchantment.Enchantment> enchantments)
    • init

      public static void init()