Uses of Interface
net.minecraftforge.common.loot.IGlobalLootModifier
Package
Description
-
Uses of IGlobalLootModifier in net.minecraftforge.common.data
Modifier and TypeMethodDescription<T extends IGlobalLootModifier>
voidPasses in the data needed to create the file without any extra objects. -
Uses of IGlobalLootModifier in net.minecraftforge.common.loot
Modifier and TypeClassDescriptionclass
A base implementation of a Global Loot Modifier for modders to extend.Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<IGlobalLootModifier>
IGlobalLootModifier.DIRECT_CODEC
private Map<ResourceLocation,
IGlobalLootModifier> LootModifierManager.modifiers
Modifier and TypeMethodDescriptioncom.mojang.serialization.Codec<? extends IGlobalLootModifier>
IGlobalLootModifier.codec()
Returns the registered codec for this modifierLootModifierManager.getAllLootMods()
An immutable collection of the registered loot modifiers in layered order. -
Uses of IGlobalLootModifier in net.minecraftforge.debug.gameplay.loot
Modifier and TypeClassDescriptionprivate static class
private static class
When harvesting blocks with bamboo, this modifier is invoked, via the silk_touch_bamboo loot_modifier jsonprivate static class
The smelting enchantment causes this modifier to be invoked, via the smelting loot_modifier jsonprivate static class
When harvesting wheat with shears, this modifier is invoked via the wheat_harvest loot_modifier json
This modifier checks how many seeds were harvested and turns X seeds into Y wheat (3:1)Modifier and TypeFieldDescriptionprivate static final DeferredRegister<com.mojang.serialization.Codec<? extends IGlobalLootModifier>>
GlobalLootModifiersTest.GLM
Modifier and TypeMethodDescriptioncom.mojang.serialization.Codec<? extends IGlobalLootModifier>
GlobalLootModifiersTest.DungeonLootEnhancerModifier.codec()
com.mojang.serialization.Codec<? extends IGlobalLootModifier>
GlobalLootModifiersTest.SilkTouchTestModifier.codec()
com.mojang.serialization.Codec<? extends IGlobalLootModifier>
GlobalLootModifiersTest.SmeltingEnchantmentModifier.codec()
com.mojang.serialization.Codec<? extends IGlobalLootModifier>
GlobalLootModifiersTest.WheatSeedsConverterModifier.codec()
-
Uses of IGlobalLootModifier in net.minecraftforge.registries
Modifier and TypeFieldDescription(package private) static final DeferredRegister<com.mojang.serialization.Codec<? extends IGlobalLootModifier>>
ForgeRegistries.DEFERRED_GLOBAL_LOOT_MODIFIER_SERIALIZERS
static final Supplier<IForgeRegistry<com.mojang.serialization.Codec<? extends IGlobalLootModifier>>>
ForgeRegistries.GLOBAL_LOOT_MODIFIER_SERIALIZERS
CallingSupplier.get()
beforeNewRegistryEvent
is fired will result in a null registry returned.static final ResourceKey<Registry<com.mojang.serialization.Codec<? extends IGlobalLootModifier>>>
ForgeRegistries.Keys.GLOBAL_LOOT_MODIFIER_SERIALIZERS
Modifier and TypeMethodDescription(package private) static RegistryBuilder<com.mojang.serialization.Codec<? extends IGlobalLootModifier>>
GameData.getGLMSerializersRegistryBuilder()