Work more on migrations to 1.21
This commit is contained in:
parent
922f89d14c
commit
ddc7fa9952
16 changed files with 480 additions and 212 deletions
|
@ -1,6 +1,8 @@
|
|||
package com.zontreck.block;
|
||||
|
||||
|
||||
import com.mojang.serialization.MapCodec;
|
||||
|
||||
import net.minecraft.world.item.context.BlockPlaceContext;
|
||||
import net.minecraft.world.level.block.Block;
|
||||
import net.minecraft.world.level.block.HorizontalDirectionalBlock;
|
||||
|
@ -24,4 +26,10 @@ public class RotatableBlock extends HorizontalDirectionalBlock
|
|||
public BlockState getStateForPlacement(BlockPlaceContext pContext) {
|
||||
return defaultBlockState().setValue(FACING, pContext.getHorizontalDirection());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected MapCodec<? extends HorizontalDirectionalBlock> codec() {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'codec'");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue