1.14.2
This commit is contained in:
parent
4479116d1c
commit
f8f20ce6ba
81 changed files with 280 additions and 434 deletions
|
@ -117,14 +117,14 @@ public class BlockLamp extends BaseTileBlock {
|
|||
// Block
|
||||
@Override
|
||||
protected void appendProperties(StateFactory.Builder<Block, BlockState> builder) {
|
||||
ACTIVE = BooleanProperty.create("active");
|
||||
ACTIVE = BooleanProperty.of("active");
|
||||
builder.add(FACING, ACTIVE);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public BlockState getPlacementState(ItemPlacementContext context) {
|
||||
for (Direction enumfacing : context.getPlacementFacings()) {
|
||||
for (Direction enumfacing : context.getPlacementDirections()) {
|
||||
BlockState iblockstate = this.getDefaultState().with(FACING, enumfacing.getOpposite());
|
||||
if (iblockstate.canPlaceAt(context.getWorld(), context.getBlockPos())) {
|
||||
return iblockstate;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue