Skip to content

Commit

Permalink
change a thing
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfieboy09 committed Nov 1, 2024
1 parent fe02f45 commit fbd7e70
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.mojang.serialization.MapCodec;
import dev.wolfieboy09.qstorage.api.annotation.NothingNullByDefault;
import dev.wolfieboy09.qstorage.block.AbstractBaseEntityBlock;
import net.minecraft.core.BlockPos;
import net.minecraft.server.level.ServerPlayer;
import net.minecraft.world.*;
Expand All @@ -21,8 +22,7 @@
import org.jetbrains.annotations.Nullable;

@NothingNullByDefault
@SuppressWarnings("deprecation")
public class DiskAssemblerBlock extends BaseEntityBlock {
public class DiskAssemblerBlock extends AbstractBaseEntityBlock {
public static final DirectionProperty FACING = BlockStateProperties.HORIZONTAL_FACING;
public static final MapCodec<DiskAssemblerBlock> CODEC = simpleCodec(DiskAssemblerBlock::new);

Expand All @@ -45,12 +45,6 @@ protected void createBlockStateDefinition(StateDefinition.Builder<Block, BlockSt
return this.defaultBlockState().setValue(FACING, context.getHorizontalDirection().getOpposite());
}

@Override
protected RenderShape getRenderShape(BlockState state) {
return RenderShape.MODEL;
}


@Override
public @Nullable BlockEntity newBlockEntity(BlockPos blockPos, BlockState blockState) {
return new DiskAssemblerBlockEntity(blockPos, blockState);
Expand Down

0 comments on commit fbd7e70

Please sign in to comment.