30 lines
847 B
Java
30 lines
847 B
Java
package net.minecraft.world.level.block;
|
|
|
|
import net.minecraft.world.phys.shapes.Shapes;
|
|
import net.minecraft.world.phys.shapes.VoxelShape;
|
|
import net.minecraft.world.phys.shapes.CollisionContext;
|
|
import net.minecraft.core.BlockPos;
|
|
import net.minecraft.world.level.BlockGetter;
|
|
import net.minecraft.world.level.block.state.BlockState;
|
|
|
|
public class AirBlock extends Block {
|
|
protected AirBlock(final Properties c) {
|
|
super(c);
|
|
}
|
|
|
|
@Override
|
|
public RenderShape getRenderShape(final BlockState byg) {
|
|
return RenderShape.INVISIBLE;
|
|
}
|
|
|
|
@Override
|
|
public VoxelShape getShape(final BlockState byg, final BlockGetter bjd, final BlockPos fk, final CollisionContext cvn) {
|
|
return Shapes.empty();
|
|
}
|
|
|
|
@Override
|
|
public boolean isAir(final BlockState byg) {
|
|
return true;
|
|
}
|
|
}
|