Minor housekeeping
This commit is contained in:
parent
02cdf8fa63
commit
4b88af996f
14 changed files with 49 additions and 46 deletions
|
@ -21,7 +21,7 @@ import net.minecraft.world.BlockView;
|
|||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.WorldAccess;
|
||||
|
||||
// TODO: BLOCKTAGS! LOOTABLES!
|
||||
// TODO: Keep dye on broken
|
||||
public class BoundaryMarkerBlock extends Block implements Waterloggable {
|
||||
public static final BooleanProperty WATERLOGGED;
|
||||
public static final IntProperty COLOUR;
|
||||
|
|
|
@ -29,9 +29,6 @@ public class WallpaperBlock extends Block {
|
|||
@Override
|
||||
public BlockState getPlacementState(ItemPlacementContext ctx) {
|
||||
BlockPos pos = ctx.getBlockPos();
|
||||
BlockState blockBelow = ctx.getWorld().getBlockState(pos);
|
||||
Block block = blockBelow.getBlock();
|
||||
|
||||
boolean hasBaseboard = isFullBlock(ctx.getWorld(), pos);
|
||||
return this.getDefaultState().with(HAS_BASEBOARD, hasBaseboard);
|
||||
}
|
||||
|
|
|
@ -381,18 +381,12 @@ public class WindowBlock extends HorizontalFacingBlock {
|
|||
|
||||
public boolean bottom_connected(BlockState state) {
|
||||
int type = state.get(WINDOW_TYPE);
|
||||
if (type == 0 || type == 3) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return type != 0 && type != 3;
|
||||
}
|
||||
|
||||
public boolean top_connected(BlockState state) {
|
||||
int type = state.get(WINDOW_TYPE);
|
||||
if (type == 0 || type == 1) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return type != 0 && type != 1;
|
||||
}
|
||||
|
||||
public boolean can_be_connected(BlockState state) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue