forked from Nyancatpig/Cultural-Delights-1.18.2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fixed Avocado Trees - Fixed Bamboo Mat model - Started Bamboo Mat GUI
- Loading branch information
1 parent
13fbbc3
commit c01c12a
Showing
21 changed files
with
582 additions
and
90 deletions.
There are no files selected for viewing
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
26 changes: 26 additions & 0 deletions
26
src/main/java/com/ncpbails/culturaldelights/block/entity/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,26 @@ | ||
package com.ncpbails.culturaldelights.block.entity; | ||
|
||
import com.ncpbails.culturaldelights.CulturalDelights; | ||
import com.ncpbails.culturaldelights.block.ModBlocks; | ||
import com.ncpbails.culturaldelights.block.entity.custom.BambooMatBlockEntity; | ||
import net.minecraft.world.level.block.entity.BlockEntityType; | ||
import net.minecraftforge.eventbus.api.IEventBus; | ||
import net.minecraftforge.registries.DeferredRegister; | ||
import net.minecraftforge.registries.ForgeRegistries; | ||
import net.minecraftforge.registries.RegistryObject; | ||
|
||
public class ModBlockEntities { | ||
|
||
public static final DeferredRegister<BlockEntityType<?>> BLOCK_ENTITIES = | ||
DeferredRegister.create(ForgeRegistries.BLOCK_ENTITIES, CulturalDelights.MOD_ID); | ||
|
||
public static final RegistryObject<BlockEntityType<BambooMatBlockEntity>> BAMBOO_MAT_BLOCK_ENTITY = | ||
BLOCK_ENTITIES.register("bamboo_mat_block_entity", () -> | ||
BlockEntityType.Builder.of(BambooMatBlockEntity::new, | ||
ModBlocks.BAMBOO_MAT.get()).build(null)); | ||
|
||
|
||
public static void register(IEventBus eventBus) { | ||
BLOCK_ENTITIES.register(eventBus); | ||
} | ||
} |
Oops, something went wrong.