Signature changes

This commit is contained in:
Frank Bauer 2021-06-23 23:50:46 +02:00
parent 6e9d8e8b49
commit d6696feb16
2 changed files with 7 additions and 2 deletions

View file

@ -6,6 +6,7 @@ import net.minecraft.core.BlockPos;
import net.minecraft.world.level.WorldGenLevel;
import net.minecraft.world.level.block.state.BlockBehaviour;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.levelgen.feature.FeaturePlaceContext;
import ru.betterend.blocks.basis.EndPlantWithAgeBlock;
import ru.betterend.registry.EndBlocks;
import ru.betterend.registry.EndFeatures;
@ -14,7 +15,7 @@ public class LumecornSeedBlock extends EndPlantWithAgeBlock {
@Override
public void growAdult(WorldGenLevel world, Random random, BlockPos pos) {
EndFeatures.LUMECORN.getFeature().place(world, null, random, pos, null);
EndFeatures.LUMECORN.getFeature().place(new FeaturePlaceContext<>(world, null, random, pos, null));
}
@Override

View file

@ -20,8 +20,12 @@ public class PedestalBlockEntity extends BlockEntity implements Container, Block
private final int maxAge = 314;
private int age;
public PedestalBlockEntity(BlockPos blockPos, BlockState blockState) {
this(EndBlockEntities.PEDESTAL, blockPos, blockState);
}
public PedestalBlockEntity(BlockEntityType<?> blockEntityType, BlockPos blockPos, BlockState blockState) {
super(EndBlockEntities.PEDESTAL, blockPos, blockState);
super(blockEntityType, blockPos, blockState);
}
public PedestalBlockEntity(BlockEntityType<?> type) {