-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
83 additions
and
83 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
.../tileentity/BrickFurnaceTileEntities.java → ...lockentity/BrickFurnaceBlockEntities.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
src/main/java/cech12/brickfurnace/init/ModBlockEntities.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package cech12.brickfurnace.init; | ||
|
||
import cech12.brickfurnace.BrickFurnaceMod; | ||
import cech12.brickfurnace.api.block.BrickFurnaceBlocks; | ||
import cech12.brickfurnace.api.blockentity.BrickFurnaceBlockEntities; | ||
import cech12.brickfurnace.blockentity.BrickBlastFurnaceBlockEntity; | ||
import cech12.brickfurnace.blockentity.BrickFurnaceBlockEntity; | ||
import cech12.brickfurnace.blockentity.BrickSmokerBlockEntity; | ||
import net.minecraft.world.level.block.Block; | ||
import net.minecraft.world.level.block.entity.BlockEntity; | ||
import net.minecraft.world.level.block.entity.BlockEntityType; | ||
import net.minecraftforge.event.RegistryEvent; | ||
import net.minecraftforge.eventbus.api.SubscribeEvent; | ||
import net.minecraftforge.fml.common.Mod; | ||
|
||
@Mod.EventBusSubscriber(modid= BrickFurnaceMod.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD) | ||
public final class ModBlockEntities { | ||
|
||
@SubscribeEvent | ||
public static void registerBlockEntities(RegistryEvent.Register<BlockEntityType<?>> event) { | ||
BrickFurnaceBlockEntities.BRICK_FURNACE = register(BrickFurnaceBlockEntity::new, "brick_furnace", BrickFurnaceBlocks.BRICK_FURNACE, event); | ||
BrickFurnaceBlockEntities.BRICK_BLAST_FURNACE = register(BrickBlastFurnaceBlockEntity::new, "brick_blast_furnace", BrickFurnaceBlocks.BRICK_BLAST_FURNACE, event); | ||
BrickFurnaceBlockEntities.BRICK_SMOKER = register(BrickSmokerBlockEntity::new, "brick_smoker", BrickFurnaceBlocks.BRICK_SMOKER, event); | ||
} | ||
|
||
private static <T extends BlockEntity> BlockEntityType<T> register(BlockEntityType.BlockEntitySupplier<T> supplier, String registryName, Block block, RegistryEvent.Register<BlockEntityType<?>> registryEvent) { | ||
BlockEntityType<T> blockEntityType = BlockEntityType.Builder.of(supplier, block).build(null); | ||
blockEntityType.setRegistryName(registryName); | ||
registryEvent.getRegistry().register(blockEntityType); | ||
return blockEntityType; | ||
} | ||
|
||
} |
33 changes: 0 additions & 33 deletions
33
src/main/java/cech12/brickfurnace/init/ModTileEntities.java
This file was deleted.
Oops, something went wrong.