Added missing methods and German translation
@@ -2,6 +2,8 @@ package net.geforcemods.securitycraft.blocks.reinforced;
import net.minecraft.world.item.context.BlockPlaceContext;
import net.minecraft.world.level.block.Block;
+import net.minecraft.world.level.block.Mirror;
+import net.minecraft.world.level.block.Rotation;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.block.state.StateDefinition;
import net.minecraft.world.level.block.state.properties.BlockStateProperties;
@@ -29,4 +31,14 @@ public class ReinforcedGlazedTerracottaBlock extends BaseReinforcedBlock {
public PushReaction getPistonPushReaction(BlockState state) {
return PushReaction.PUSH_ONLY;
}
+
+ @Override
+ public BlockState rotate(BlockState state, Rotation rot) {
+ return state.setValue(FACING, rot.rotate(state.getValue(FACING)));
+ }
+
+ @Override
+ public BlockState mirror(BlockState state, Mirror mirror) {
+ return state.rotate(mirror.getRotation(state.getValue(FACING)));
+ }
}
