Package com.idark.valoria.util
Class LootUtil
java.lang.Object
com.idark.valoria.util.LootUtil
-
Field Summary
Modifier and TypeFieldDescriptionstatic final net.minecraftforge.registries.RegistryObject<com.mojang.serialization.Codec<? extends net.minecraftforge.common.loot.IGlobalLootModifier>>
static final net.minecraftforge.registries.DeferredRegister<com.mojang.serialization.Codec<? extends net.minecraftforge.common.loot.IGlobalLootModifier>>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<net.minecraft.world.item.ItemStack>
createLoot
(net.minecraft.resources.ResourceLocation pLoot, net.minecraft.world.level.storage.loot.LootParams pParams) static void
DropLoot
(net.minecraft.world.entity.player.Player pPlayer, Collection<net.minecraft.world.item.ItemStack> pItemStacks) Drops loot when using itemstatic net.minecraft.world.level.storage.loot.LootParams
getGiftParameters
(net.minecraft.server.level.ServerLevel pLevel, net.minecraft.world.phys.Vec3 pPos, float pLuckValue, net.minecraft.world.entity.Entity pEntity) static net.minecraft.world.level.storage.loot.LootParams
getGiftParameters
(net.minecraft.server.level.ServerLevel pLevel, net.minecraft.world.phys.Vec3 pPos, net.minecraft.world.entity.Entity pEntity) static net.minecraft.world.level.storage.loot.LootTable
getTable
(net.minecraft.server.level.ServerLevel pServer, net.minecraft.resources.ResourceLocation pLoot) static void
register
(net.minecraftforge.eventbus.api.IEventBus eventBus) static void
SpawnLoot
(net.minecraft.world.level.Level pLevel, net.minecraft.core.BlockPos pPos, Collection<net.minecraft.world.item.ItemStack> pItemStacks) Spawns loot on a block position when using item
-
Field Details
-
LOOT_MODIFIER_SERIALIZERS
public static final net.minecraftforge.registries.DeferredRegister<com.mojang.serialization.Codec<? extends net.minecraftforge.common.loot.IGlobalLootModifier>> LOOT_MODIFIER_SERIALIZERS -
ADD_ITEM
public static final net.minecraftforge.registries.RegistryObject<com.mojang.serialization.Codec<? extends net.minecraftforge.common.loot.IGlobalLootModifier>> ADD_ITEM
-
-
Constructor Details
-
LootUtil
public LootUtil()
-
-
Method Details
-
getTable
public static net.minecraft.world.level.storage.loot.LootTable getTable(net.minecraft.server.level.ServerLevel pServer, net.minecraft.resources.ResourceLocation pLoot) -
DropLoot
public static void DropLoot(net.minecraft.world.entity.player.Player pPlayer, Collection<net.minecraft.world.item.ItemStack> pItemStacks) Drops loot when using item -
SpawnLoot
public static void SpawnLoot(net.minecraft.world.level.Level pLevel, net.minecraft.core.BlockPos pPos, Collection<net.minecraft.world.item.ItemStack> pItemStacks) Spawns loot on a block position when using item -
createLoot
@Nonnull public static List<net.minecraft.world.item.ItemStack> createLoot(net.minecraft.resources.ResourceLocation pLoot, net.minecraft.world.level.storage.loot.LootParams pParams) -
getGiftParameters
public static net.minecraft.world.level.storage.loot.LootParams getGiftParameters(net.minecraft.server.level.ServerLevel pLevel, net.minecraft.world.phys.Vec3 pPos, net.minecraft.world.entity.Entity pEntity) -
getGiftParameters
public static net.minecraft.world.level.storage.loot.LootParams getGiftParameters(net.minecraft.server.level.ServerLevel pLevel, net.minecraft.world.phys.Vec3 pPos, float pLuckValue, net.minecraft.world.entity.Entity pEntity) -
register
public static void register(net.minecraftforge.eventbus.api.IEventBus eventBus)
-