Added the start of the space ship entity

This commit is contained in:
Halbear
2026-05-17 00:47:05 +01:00
parent 0c28cdb9f2
commit 28816a0385
47 changed files with 1600 additions and 178 deletions
@@ -0,0 +1,29 @@
package net.halbear.supernova.custom.block;
import net.minecraft.block.*;
import net.minecraft.item.BlockItemUseContext;
import net.minecraft.state.DirectionProperty;
import net.minecraft.state.StateContainer;
import net.minecraft.state.properties.BlockStateProperties;
import javax.annotation.Nullable;
public class ArcFurnace extends HorizontalBlock{
public static final DirectionProperty HORIZONTAL_FACING = BlockStateProperties.HORIZONTAL_FACING;
public ArcFurnace(Properties builder){
super(builder);
}
@Override
protected void fillStateContainer(StateContainer.Builder<Block, BlockState> builder){
builder.add(HORIZONTAL_FACING);
}
@Nullable
@Override
public BlockState getStateForPlacement(BlockItemUseContext context){
return this.getDefaultState().with(HORIZONTAL_FACING, context.getPlacementHorizontalFacing().getOpposite());
}
}