Package com.minecolonies.api.loot
Class ModLootConditions
java.lang.Object
com.minecolonies.api.loot.ModLootConditions
Container class for registering custom loot conditions
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.neoforged.neoforge.registries.DeferredRegister<net.minecraft.world.level.storage.loot.predicates.LootItemConditionType> static final net.minecraft.resources.ResourceLocationstatic 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.ResourceLocationstatic 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.Builderstatic final net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builderstatic final net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builderstatic final net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builderstatic final net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builderstatic final net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builderstatic final net.minecraft.resources.ResourceLocationstatic 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 TypeMethodDescriptionstatic net.minecraft.world.level.storage.loot.predicates.LootItemCondition.BuilderdoesNotHaveShearsOrSilkTouch(net.minecraft.core.HolderLookup.RegistryLookup<net.minecraft.world.item.enchantment.Enchantment> enchantments) static net.minecraft.world.level.storage.loot.predicates.LootItemCondition.BuilderhasHoe()static net.minecraft.world.level.storage.loot.predicates.LootItemCondition.Builderstatic net.minecraft.world.level.storage.loot.predicates.LootItemCondition.BuilderhasShearsOrSilkTouch(net.minecraft.core.HolderLookup.RegistryLookup<net.minecraft.world.item.enchantment.Enchantment> enchantments) static net.minecraft.world.level.storage.loot.predicates.LootItemCondition.BuilderhasSilkTouch(net.minecraft.core.HolderLookup.RegistryLookup<net.minecraft.world.item.enchantment.Enchantment> enchantments) static voidinit()
-
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()
-