Fixed getCloneItemStack
signature
This commit is contained in:
parent
9f9ae18e8c
commit
3de73aa1dc
6 changed files with 8 additions and 8 deletions
|
@ -113,7 +113,7 @@ public class EndLilyBlock extends EndUnderwaterPlantBlock implements BehaviourWa
|
|||
|
||||
@Override
|
||||
@Environment(EnvType.CLIENT)
|
||||
public ItemStack getCloneItemStack(BlockGetter world, BlockPos pos, BlockState state) {
|
||||
public ItemStack getCloneItemStack(LevelReader world, BlockPos pos, BlockState state) {
|
||||
return new ItemStack(EndBlocks.END_LILY_SEED);
|
||||
}
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ import org.betterx.betterend.registry.EndBlocks;
|
|||
import net.minecraft.core.BlockPos;
|
||||
import net.minecraft.world.item.ItemStack;
|
||||
import net.minecraft.world.level.BlockGetter;
|
||||
import net.minecraft.world.level.LevelReader;
|
||||
import net.minecraft.world.level.block.Block;
|
||||
import net.minecraft.world.level.block.state.BlockState;
|
||||
import net.minecraft.world.level.material.MapColor;
|
||||
|
@ -55,7 +56,7 @@ public class EndLotusFlowerBlock extends EndPlantBlock implements BehaviourPlant
|
|||
|
||||
@Override
|
||||
@Environment(EnvType.CLIENT)
|
||||
public ItemStack getCloneItemStack(BlockGetter world, BlockPos pos, BlockState state) {
|
||||
public ItemStack getCloneItemStack(LevelReader world, BlockPos pos, BlockState state) {
|
||||
return new ItemStack(EndBlocks.END_LOTUS_SEED);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -77,7 +77,7 @@ public class EndLotusLeafBlock extends BaseBlockNotFull implements RenderLayerPr
|
|||
|
||||
@Override
|
||||
@Environment(EnvType.CLIENT)
|
||||
public ItemStack getCloneItemStack(BlockGetter world, BlockPos pos, BlockState state) {
|
||||
public ItemStack getCloneItemStack(LevelReader world, BlockPos pos, BlockState state) {
|
||||
return new ItemStack(EndBlocks.END_LOTUS_SEED);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ import org.betterx.betterend.registry.EndBlocks;
|
|||
|
||||
import net.minecraft.core.BlockPos;
|
||||
import net.minecraft.world.item.ItemStack;
|
||||
import net.minecraft.world.level.BlockGetter;
|
||||
import net.minecraft.world.level.LevelReader;
|
||||
import net.minecraft.world.level.block.Block;
|
||||
import net.minecraft.world.level.block.state.BlockState;
|
||||
import net.minecraft.world.level.block.state.StateDefinition;
|
||||
|
@ -31,7 +31,7 @@ public class GlowingPillarRootsBlock extends UpDownPlantBlock {
|
|||
|
||||
@Override
|
||||
@Environment(EnvType.CLIENT)
|
||||
public ItemStack getCloneItemStack(BlockGetter world, BlockPos pos, BlockState state) {
|
||||
public ItemStack getCloneItemStack(LevelReader world, BlockPos pos, BlockState state) {
|
||||
return new ItemStack(EndBlocks.GLOWING_PILLAR_SEED);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,7 +13,6 @@ import org.betterx.worlds.together.tag.v3.CommonBlockTags;
|
|||
import net.minecraft.core.BlockPos;
|
||||
import net.minecraft.util.RandomSource;
|
||||
import net.minecraft.world.item.ItemStack;
|
||||
import net.minecraft.world.level.BlockGetter;
|
||||
import net.minecraft.world.level.Level;
|
||||
import net.minecraft.world.level.LevelReader;
|
||||
import net.minecraft.world.level.block.Block;
|
||||
|
@ -77,7 +76,7 @@ public class HydraluxBlock extends UnderwaterPlantBlock implements BehaviourWate
|
|||
|
||||
@Override
|
||||
@Environment(EnvType.CLIENT)
|
||||
public ItemStack getCloneItemStack(BlockGetter world, BlockPos pos, BlockState state) {
|
||||
public ItemStack getCloneItemStack(LevelReader world, BlockPos pos, BlockState state) {
|
||||
return new ItemStack(EndBlocks.HYDRALUX_SAPLING);
|
||||
}
|
||||
|
||||
|
|
|
@ -107,7 +107,7 @@ public class LumecornBlock extends BaseBlockNotFull.Wood implements RenderLayerP
|
|||
|
||||
@Override
|
||||
@Environment(EnvType.CLIENT)
|
||||
public ItemStack getCloneItemStack(BlockGetter world, BlockPos pos, BlockState state) {
|
||||
public ItemStack getCloneItemStack(LevelReader world, BlockPos pos, BlockState state) {
|
||||
EndBlockProperties.LumecornShape shape = state.getValue(SHAPE);
|
||||
if (shape == EndBlockProperties.LumecornShape.BOTTOM_BIG || shape == EndBlockProperties.LumecornShape.BOTTOM_SMALL || shape == EndBlockProperties.LumecornShape.MIDDLE) {
|
||||
return new ItemStack(EndBlocks.LUMECORN_SEED);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue