LootContext -> LootParams

This commit is contained in:
Frank 2023-05-24 19:10:59 +02:00
parent cfd9994233
commit e8cddbda54
32 changed files with 63 additions and 63 deletions

View file

@ -18,7 +18,7 @@ import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.block.state.StateDefinition;
import net.minecraft.world.level.block.state.properties.EnumProperty;
import net.minecraft.world.level.storage.loot.LootContext;
import net.minecraft.world.level.storage.loot.LootParams;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
@ -78,7 +78,7 @@ public class HydraluxBlock extends UnderwaterPlantBlock implements AddMineableSh
}
@Override
public List<ItemStack> getDrops(BlockState state, LootContext.Builder builder) {
public List<ItemStack> getDrops(BlockState state, LootParams.Builder builder) {
HydraluxShape shape = state.getValue(SHAPE);
if (shape == HydraluxShape.FLOWER_BIG_BOTTOM || shape == HydraluxShape.FLOWER_SMALL_BOTTOM) {
return Lists.newArrayList(new ItemStack(