145146147148149150151152153154155
builder.putByte("Direction", (byte) MCDirections.toHanging(newDirection)); builder.putByte("Dir", MCDirections.toLegacyHanging(MCDirections.toHanging(newDirection))); } } return new BaseEntity(state.getTypeId(), builder.build()); } } return state; }