Block class rename
This commit is contained in:
parent
4b55bf30a8
commit
5f3547de8e
157 changed files with 748 additions and 756 deletions
|
@ -8,7 +8,7 @@ import net.minecraft.state.property.Properties;
|
|||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.util.math.Direction;
|
||||
import net.minecraft.world.StructureWorldAccess;
|
||||
import ru.betterend.blocks.basis.BlockAttached;
|
||||
import ru.betterend.blocks.basis.AttachedBlock;
|
||||
import ru.betterend.util.BlocksHelper;
|
||||
|
||||
public class SingleInvertedScatterFeature extends InvertedScatterFeature {
|
||||
|
@ -25,7 +25,7 @@ public class SingleInvertedScatterFeature extends InvertedScatterFeature {
|
|||
return false;
|
||||
}
|
||||
BlockState state = block.getDefaultState();
|
||||
if (block instanceof BlockAttached) {
|
||||
if (block instanceof AttachedBlock) {
|
||||
state = state.with(Properties.FACING, Direction.DOWN);
|
||||
}
|
||||
return state.canPlaceAt(world, blockPos);
|
||||
|
@ -34,7 +34,7 @@ public class SingleInvertedScatterFeature extends InvertedScatterFeature {
|
|||
@Override
|
||||
public void generate(StructureWorldAccess world, Random random, BlockPos blockPos) {
|
||||
BlockState state = block.getDefaultState();
|
||||
if (block instanceof BlockAttached) {
|
||||
if (block instanceof AttachedBlock) {
|
||||
state = state.with(Properties.FACING, Direction.DOWN);
|
||||
}
|
||||
BlocksHelper.setWithoutUpdate(world, blockPos, state);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue