Skip to content
This repository has been archived by the owner on Jan 14, 2025. It is now read-only.

Commit

Permalink
chore: remove redundant implements notation
Browse files Browse the repository at this point in the history
  • Loading branch information
chimericdream committed Oct 20, 2024
1 parent 9723cfc commit 3c36844
Show file tree
Hide file tree
Showing 44 changed files with 44 additions and 88 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.chimericdream.minekea.block.building.beams;

import com.chimericdream.lib.blocks.BlockConfig;
import com.chimericdream.lib.blocks.BlockDataGenerator;
import com.chimericdream.lib.blocks.RegisterableBlock;
import com.chimericdream.lib.fabric.blocks.FabricBlockDataGenerator;
import com.chimericdream.lib.fabric.blocks.FabricItemGroupEventHelpers;
Expand Down Expand Up @@ -65,7 +64,7 @@
import java.util.Optional;
import java.util.function.Function;

public class GenericBeamBlock extends Block implements BlockDataGenerator, FabricBlockDataGenerator, ModConfigurable, RegisterableBlock, Waterloggable {
public class GenericBeamBlock extends Block implements FabricBlockDataGenerator, ModConfigurable, RegisterableBlock, Waterloggable {
protected static final Model CONNECTED_NORTH_MODEL = makeModel("north");
protected static final Model CONNECTED_SOUTH_MODEL = makeModel("south");
protected static final Model CONNECTED_EAST_MODEL = makeModel("east");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.chimericdream.minekea.block.building.compressed;

import com.chimericdream.lib.blocks.BlockConfig;
import com.chimericdream.lib.blocks.BlockDataGenerator;
import com.chimericdream.lib.blocks.RegisterableBlock;
import com.chimericdream.lib.fabric.blocks.FabricBlockDataGenerator;
import com.chimericdream.lib.fabric.blocks.FabricItemGroupEventHelpers;
Expand Down Expand Up @@ -45,7 +44,7 @@
import java.util.Optional;
import java.util.function.Function;

public class GenericCompressedBlock extends Block implements BlockDataGenerator, FabricBlockDataGenerator, ModConfigurable, RegisterableBlock {
public class GenericCompressedBlock extends Block implements FabricBlockDataGenerator, ModConfigurable, RegisterableBlock {
public final Identifier BLOCK_ID;
public final BlockConfig config;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.chimericdream.minekea.block.building.covers;

import com.chimericdream.lib.blocks.BlockConfig;
import com.chimericdream.lib.blocks.BlockDataGenerator;
import com.chimericdream.lib.blocks.RegisterableBlock;
import com.chimericdream.lib.fabric.blocks.FabricBlockDataGenerator;
import com.chimericdream.lib.fabric.blocks.FabricItemGroupEventHelpers;
Expand Down Expand Up @@ -45,7 +44,7 @@
import java.util.Optional;
import java.util.function.Function;

public class GenericCoverBlock extends CarpetBlock implements BlockDataGenerator, FabricBlockDataGenerator, ModConfigurable, RegisterableBlock, Waterloggable {
public class GenericCoverBlock extends CarpetBlock implements FabricBlockDataGenerator, ModConfigurable, RegisterableBlock, Waterloggable {
// yowza
public static final Model COVER_MODEL = new Model(
Optional.of(Identifier.of(ModInfo.MOD_ID, "block/building/cover")),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.chimericdream.minekea.block.building.dyed;

import com.chimericdream.lib.blocks.BlockConfig;
import com.chimericdream.lib.blocks.BlockDataGenerator;
import com.chimericdream.lib.blocks.RegisterableBlock;
import com.chimericdream.lib.colors.ColorHelpers;
import com.chimericdream.lib.fabric.blocks.FabricBlockDataGenerator;
Expand Down Expand Up @@ -55,7 +54,7 @@
import java.util.Optional;
import java.util.function.Function;

public class DyedBlock extends Block implements BlockDataGenerator, FabricBlockDataGenerator, ModConfigurable, RegisterableBlock {
public class DyedBlock extends Block implements FabricBlockDataGenerator, ModConfigurable, RegisterableBlock {
public static final EnumProperty<Direction.Axis> AXIS;

static {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.chimericdream.minekea.block.building.dyed;

import com.chimericdream.lib.blocks.BlockConfig;
import com.chimericdream.lib.blocks.BlockDataGenerator;
import com.chimericdream.lib.blocks.RegisterableBlock;
import com.chimericdream.lib.colors.ColorHelpers;
import com.chimericdream.lib.fabric.blocks.FabricBlockDataGenerator;
Expand Down Expand Up @@ -61,7 +60,7 @@
import java.util.Optional;
import java.util.function.Function;

public class DyedPillarBlock extends PillarBlock implements BlockDataGenerator, FabricBlockDataGenerator, ModConfigurable, RegisterableBlock {
public class DyedPillarBlock extends PillarBlock implements FabricBlockDataGenerator, ModConfigurable, RegisterableBlock {
public static final EnumProperty<Direction.Axis> AXIS;

static {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.chimericdream.minekea.block.building.framed;

import com.chimericdream.lib.blocks.BlockConfig;
import com.chimericdream.lib.blocks.BlockDataGenerator;
import com.chimericdream.lib.blocks.RegisterableBlock;
import com.chimericdream.lib.fabric.blocks.FabricBlockDataGenerator;
import com.chimericdream.lib.fabric.blocks.FabricItemGroupEventHelpers;
Expand Down Expand Up @@ -47,7 +46,7 @@
import java.util.Optional;
import java.util.function.Function;

public class FramedPlanksBlock extends Block implements BlockDataGenerator, FabricBlockDataGenerator, ModConfigurable, RegisterableBlock {
public class FramedPlanksBlock extends Block implements FabricBlockDataGenerator, ModConfigurable, RegisterableBlock {
protected static final Model CORE_MODEL = new Model(
Optional.of(Identifier.of(ModInfo.MOD_ID, "block/building/framed_planks/core")),
Optional.empty(),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.chimericdream.minekea.block.building.general;

import com.chimericdream.lib.blocks.BlockDataGenerator;
import com.chimericdream.lib.blocks.RegisterableBlock;
import com.chimericdream.lib.fabric.blocks.FabricBlockDataGenerator;
import com.chimericdream.lib.fabric.blocks.FabricItemGroupEventHelpers;
Expand All @@ -26,7 +25,7 @@

import java.util.function.Function;

public class BasaltBricksBlock extends Block implements BlockDataGenerator, FabricBlockDataGenerator, RegisterableBlock {
public class BasaltBricksBlock extends Block implements FabricBlockDataGenerator, RegisterableBlock {
public static final Identifier BLOCK_ID = Identifier.of(ModInfo.MOD_ID, "building/general/basalt_bricks");

public BasaltBricksBlock() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.chimericdream.minekea.block.building.general;

import com.chimericdream.lib.blocks.BlockDataGenerator;
import com.chimericdream.lib.blocks.RegisterableBlock;
import com.chimericdream.lib.fabric.blocks.FabricBlockDataGenerator;
import com.chimericdream.lib.fabric.blocks.FabricItemGroupEventHelpers;
Expand Down Expand Up @@ -28,7 +27,7 @@

import static com.chimericdream.minekea.block.building.BuildingBlocks.BASALT_BRICKS_BLOCK;

public class ChiseledBasaltBricksBlock extends Block implements BlockDataGenerator, FabricBlockDataGenerator, RegisterableBlock {
public class ChiseledBasaltBricksBlock extends Block implements FabricBlockDataGenerator, RegisterableBlock {
public static final Identifier BLOCK_ID = Identifier.of(ModInfo.MOD_ID, "building/general/chiseled_basalt_bricks");

public ChiseledBasaltBricksBlock() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.chimericdream.minekea.block.building.general;

import com.chimericdream.lib.blocks.BlockDataGenerator;
import com.chimericdream.lib.blocks.RegisterableBlock;
import com.chimericdream.lib.fabric.blocks.FabricBlockDataGenerator;
import com.chimericdream.lib.fabric.blocks.FabricItemGroupEventHelpers;
Expand All @@ -27,7 +26,7 @@

import static com.chimericdream.minekea.block.building.BuildingBlocks.BASALT_BRICKS_BLOCK;

public class CrackedBasaltBricksBlock extends Block implements BlockDataGenerator, FabricBlockDataGenerator, RegisterableBlock {
public class CrackedBasaltBricksBlock extends Block implements FabricBlockDataGenerator, RegisterableBlock {
public static final Identifier BLOCK_ID = Identifier.of(ModInfo.MOD_ID, "building/general/cracked_basalt_bricks");

public CrackedBasaltBricksBlock() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.chimericdream.minekea.block.building.general;

import com.chimericdream.lib.blocks.BlockDataGenerator;
import com.chimericdream.lib.blocks.RegisterableBlock;
import com.chimericdream.lib.fabric.blocks.FabricBlockDataGenerator;
import com.chimericdream.lib.fabric.blocks.FabricItemGroupEventHelpers;
Expand Down Expand Up @@ -28,7 +27,7 @@

import static com.chimericdream.minekea.block.building.BuildingBlocks.BASALT_BRICKS_BLOCK;

public class CrimsonBasaltBricksBlock extends Block implements BlockDataGenerator, FabricBlockDataGenerator, RegisterableBlock {
public class CrimsonBasaltBricksBlock extends Block implements FabricBlockDataGenerator, RegisterableBlock {
public static final Identifier BLOCK_ID = Identifier.of(ModInfo.MOD_ID, "building/general/crimson_basalt_bricks");

public CrimsonBasaltBricksBlock() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.chimericdream.minekea.block.building.general;

import com.chimericdream.lib.blocks.BlockDataGenerator;
import com.chimericdream.lib.blocks.RegisterableBlock;
import com.chimericdream.lib.fabric.blocks.FabricBlockDataGenerator;
import com.chimericdream.lib.fabric.blocks.FabricItemGroupEventHelpers;
Expand Down Expand Up @@ -28,7 +27,7 @@

import static com.chimericdream.minekea.block.building.BuildingBlocks.BASALT_BRICKS_BLOCK;

public class MossyBasaltBricksBlock extends Block implements BlockDataGenerator, FabricBlockDataGenerator, RegisterableBlock {
public class MossyBasaltBricksBlock extends Block implements FabricBlockDataGenerator, RegisterableBlock {
public static final Identifier BLOCK_ID = Identifier.of(ModInfo.MOD_ID, "building/general/mossy_basalt_bricks");

public MossyBasaltBricksBlock() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.chimericdream.minekea.block.building.general;

import com.chimericdream.lib.blocks.BlockDataGenerator;
import com.chimericdream.lib.blocks.RegisterableBlock;
import com.chimericdream.lib.fabric.blocks.FabricBlockDataGenerator;
import com.chimericdream.lib.fabric.blocks.FabricItemGroupEventHelpers;
Expand Down Expand Up @@ -28,7 +27,7 @@

import static com.chimericdream.minekea.block.building.BuildingBlocks.BASALT_BRICKS_BLOCK;

public class WarpedBasaltBricksBlock extends Block implements BlockDataGenerator, FabricBlockDataGenerator, RegisterableBlock {
public class WarpedBasaltBricksBlock extends Block implements FabricBlockDataGenerator, RegisterableBlock {
public static final Identifier BLOCK_ID = Identifier.of(ModInfo.MOD_ID, "building/general/warped_basalt_bricks");

public WarpedBasaltBricksBlock() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.chimericdream.minekea.block.building.general;

import com.chimericdream.lib.blocks.BlockDataGenerator;
import com.chimericdream.lib.blocks.RegisterableBlock;
import com.chimericdream.lib.fabric.blocks.FabricBlockDataGenerator;
import com.chimericdream.lib.fabric.blocks.FabricItemGroupEventHelpers;
Expand Down Expand Up @@ -28,7 +27,7 @@

import static com.chimericdream.minekea.crops.Crops.WARPED_WART_ITEM;

public class WarpedNetherBricksBlock extends Block implements BlockDataGenerator, FabricBlockDataGenerator, RegisterableBlock {
public class WarpedNetherBricksBlock extends Block implements FabricBlockDataGenerator, RegisterableBlock {
public static final Identifier BLOCK_ID = Identifier.of(ModInfo.MOD_ID, "building/general/warped_nether_bricks");

public WarpedNetherBricksBlock() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.chimericdream.minekea.block.building.general;

import com.chimericdream.lib.blocks.BlockDataGenerator;
import com.chimericdream.lib.blocks.RegisterableBlock;
import com.chimericdream.lib.colors.ColorHelpers;
import com.chimericdream.lib.fabric.blocks.FabricBlockDataGenerator;
Expand Down Expand Up @@ -32,7 +31,7 @@
import java.util.List;
import java.util.function.Function;

public class WaxBlock extends Block implements BlockDataGenerator, FabricBlockDataGenerator, RegisterableBlock {
public class WaxBlock extends Block implements FabricBlockDataGenerator, RegisterableBlock {
public final Identifier BLOCK_ID;

protected final String color;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.chimericdream.minekea.block.building.slabs;

import com.chimericdream.lib.blocks.BlockConfig;
import com.chimericdream.lib.blocks.BlockDataGenerator;
import com.chimericdream.lib.blocks.RegisterableBlock;
import com.chimericdream.lib.fabric.blocks.FabricBlockDataGenerator;
import com.chimericdream.lib.fabric.blocks.FabricItemGroupEventHelpers;
Expand Down Expand Up @@ -36,7 +35,7 @@
import java.util.Optional;
import java.util.function.Function;

public class GenericSlabBlock extends SlabBlock implements BlockDataGenerator, FabricBlockDataGenerator, ModConfigurable, RegisterableBlock {
public class GenericSlabBlock extends SlabBlock implements FabricBlockDataGenerator, ModConfigurable, RegisterableBlock {
public final Identifier BLOCK_ID;
public final BlockConfig config;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.chimericdream.minekea.block.building.slabs;

import com.chimericdream.lib.blocks.BlockConfig;
import com.chimericdream.lib.blocks.BlockDataGenerator;
import com.chimericdream.lib.blocks.RegisterableBlock;
import com.chimericdream.lib.fabric.blocks.FabricBlockDataGenerator;
import com.chimericdream.lib.fabric.blocks.FabricItemGroupEventHelpers;
Expand Down Expand Up @@ -49,7 +48,7 @@
import java.util.Optional;
import java.util.function.Function;

public class GenericVerticalSlabBlock extends Block implements BlockDataGenerator, FabricBlockDataGenerator, ModConfigurable, RegisterableBlock, Waterloggable {
public class GenericVerticalSlabBlock extends Block implements FabricBlockDataGenerator, ModConfigurable, RegisterableBlock, Waterloggable {
public static final Model VERTICAL_SLAB_MODEL = new Model(
Optional.of(Identifier.of(ModInfo.MOD_ID, "block/building/slabs/vertical")),
Optional.empty(),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.chimericdream.minekea.block.building.stairs;

import com.chimericdream.lib.blocks.BlockConfig;
import com.chimericdream.lib.blocks.BlockDataGenerator;
import com.chimericdream.lib.blocks.RegisterableBlock;
import com.chimericdream.lib.fabric.blocks.FabricBlockDataGenerator;
import com.chimericdream.lib.fabric.blocks.FabricItemGroupEventHelpers;
Expand Down Expand Up @@ -38,7 +37,7 @@
import java.util.Optional;
import java.util.function.Function;

public class GenericStairsBlock extends StairsBlock implements BlockDataGenerator, FabricBlockDataGenerator, ModConfigurable, RegisterableBlock {
public class GenericStairsBlock extends StairsBlock implements FabricBlockDataGenerator, ModConfigurable, RegisterableBlock {
public final Identifier BLOCK_ID;
public final BlockConfig config;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.chimericdream.minekea.block.building.stairs;

import com.chimericdream.lib.blocks.BlockConfig;
import com.chimericdream.lib.blocks.BlockDataGenerator;
import com.chimericdream.lib.blocks.RegisterableBlock;
import com.chimericdream.lib.fabric.blocks.FabricBlockDataGenerator;
import com.chimericdream.lib.fabric.blocks.FabricItemGroupEventHelpers;
Expand Down Expand Up @@ -50,7 +49,7 @@
import java.util.Optional;
import java.util.function.Function;

public class GenericVerticalStairsBlock extends Block implements BlockDataGenerator, FabricBlockDataGenerator, ModConfigurable, RegisterableBlock, Waterloggable {
public class GenericVerticalStairsBlock extends Block implements FabricBlockDataGenerator, ModConfigurable, RegisterableBlock, Waterloggable {
public static final Model VERTICAL_STAIRS_MODEL = new Model(
Optional.of(Identifier.of(ModInfo.MOD_ID, "block/building/stairs/vertical")),
Optional.empty(),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.chimericdream.minekea.block.building.storage;

import com.chimericdream.lib.blocks.BlockDataGenerator;
import com.chimericdream.lib.blocks.RegisterableBlock;
import com.chimericdream.lib.colors.ColorHelpers;
import com.chimericdream.lib.fabric.blocks.FabricBlockDataGenerator;
Expand Down Expand Up @@ -37,7 +36,7 @@

import java.util.Optional;

public class DyeBlock extends Block implements BlockDataGenerator, FabricBlockDataGenerator, RegisterableBlock {
public class DyeBlock extends Block implements FabricBlockDataGenerator, RegisterableBlock {
private static final Model DYE_BLOCK_MODEL = new Model(
Optional.of(Identifier.of("minekea:block/storage/dye_block")),
Optional.empty(),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.chimericdream.minekea.block.building.storage;

import com.chimericdream.lib.blocks.BlockConfig;
import com.chimericdream.lib.blocks.BlockDataGenerator;
import com.chimericdream.lib.blocks.RegisterableBlock;
import com.chimericdream.lib.fabric.blocks.FabricBlockDataGenerator;
import com.chimericdream.lib.fabric.blocks.FabricItemGroupEventHelpers;
Expand Down Expand Up @@ -65,7 +64,7 @@
import java.util.function.Function;
import java.util.function.Supplier;

abstract public class GenericStorageBlock extends Block implements BlockDataGenerator, FabricBlockDataGenerator, ModConfigurable, RegisterableBlock {
abstract public class GenericStorageBlock extends Block implements FabricBlockDataGenerator, ModConfigurable, RegisterableBlock {
protected static final Model COMPRESSED_COLUMN_BLOCK_MODEL = new Model(
Optional.of(Identifier.of("minekea:block/storage/compressed_column")),
Optional.empty(),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.chimericdream.minekea.block.building.storage;

import com.chimericdream.lib.blocks.BlockDataGenerator;
import com.chimericdream.lib.blocks.RegisterableBlock;
import com.chimericdream.lib.fabric.blocks.FabricBlockDataGenerator;
import com.chimericdream.lib.fabric.blocks.FabricItemGroupEventHelpers;
Expand Down Expand Up @@ -43,7 +42,7 @@
import java.util.function.Function;

// @TODO: turn this into a slab-like block with top/bottom/full variations
public class SetOfEggsBlock extends Block implements BlockDataGenerator, FabricBlockDataGenerator, RegisterableBlock, Waterloggable {
public class SetOfEggsBlock extends Block implements FabricBlockDataGenerator, RegisterableBlock, Waterloggable {
public static final Identifier BLOCK_ID = Identifier.of(ModInfo.MOD_ID, "storage/set_of_eggs");

public static final BooleanProperty WATERLOGGED = Properties.WATERLOGGED;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.chimericdream.minekea.block.building.walls;

import com.chimericdream.lib.blocks.BlockConfig;
import com.chimericdream.lib.blocks.BlockDataGenerator;
import com.chimericdream.lib.blocks.RegisterableBlock;
import com.chimericdream.lib.fabric.blocks.FabricBlockDataGenerator;
import com.chimericdream.lib.fabric.blocks.FabricItemGroupEventHelpers;
Expand Down Expand Up @@ -38,7 +37,7 @@
import java.util.Optional;
import java.util.function.Function;

public class GenericWallBlock extends WallBlock implements BlockDataGenerator, FabricBlockDataGenerator, ModConfigurable, RegisterableBlock {
public class GenericWallBlock extends WallBlock implements FabricBlockDataGenerator, ModConfigurable, RegisterableBlock {
public final Identifier BLOCK_ID;
public final BlockConfig config;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.chimericdream.minekea.block.containers;

import com.chimericdream.lib.blocks.BlockDataGenerator;
import com.chimericdream.lib.blocks.RegisterableBlock;
import com.chimericdream.lib.fabric.blocks.FabricBlockDataGenerator;
import com.chimericdream.lib.fabric.blocks.FabricItemGroupEventHelpers;
Expand Down Expand Up @@ -87,7 +86,7 @@
import java.util.function.Function;
import java.util.function.UnaryOperator;

public class GlassJarBlock extends BlockWithEntity implements BlockDataGenerator, FabricBlockDataGenerator, RegisterableBlock, Waterloggable {
public class GlassJarBlock extends BlockWithEntity implements FabricBlockDataGenerator, RegisterableBlock, Waterloggable {
public static final MapCodec<GlassJarBlock> CODEC = createCodec(GlassJarBlock::new);

public static final Map<String, String> ALLOWED_ITEMS = new LinkedHashMap<>();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.chimericdream.minekea.block.containers.barrels;

import com.chimericdream.lib.blocks.BlockConfig;
import com.chimericdream.lib.blocks.BlockDataGenerator;
import com.chimericdream.lib.blocks.RegisterableBlock;
import com.chimericdream.lib.fabric.blocks.FabricBlockDataGenerator;
import com.chimericdream.lib.fabric.blocks.FabricItemGroupEventHelpers;
Expand Down Expand Up @@ -67,7 +66,7 @@
import java.util.Optional;
import java.util.function.Function;

public class GenericBarrel extends BlockWithEntity implements BlockDataGenerator, FabricBlockDataGenerator, ModConfigurable, RegisterableBlock {
public class GenericBarrel extends BlockWithEntity implements FabricBlockDataGenerator, ModConfigurable, RegisterableBlock {
public static final MapCodec<GenericBarrel> CODEC = createCodec(GenericBarrel::new);

public final Identifier BLOCK_ID;
Expand Down
Loading

0 comments on commit 3c36844

Please sign in to comment.