-
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.
- Loading branch information
Showing
5 changed files
with
45 additions
and
2 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
10 changes: 10 additions & 0 deletions
10
src/main/java/com/redpandastudios/garth/core/registry/GarthBlocks.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,10 @@ | ||
package com.redpandastudios.garth.core.registry; | ||
|
||
import com.redpandastudios.garth.core.Garth; | ||
import com.teamabnormals.blueprint.core.util.registry.BlockSubRegistryHelper; | ||
import net.minecraftforge.fml.common.Mod; | ||
|
||
@Mod.EventBusSubscriber(modid = Garth.MOD_ID) | ||
public class GarthBlocks { | ||
public static final BlockSubRegistryHelper HELPER = Garth.REGISTRY_HELPER.getBlockSubHelper(); | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/com/redpandastudios/garth/integration/farmersdelight/GarthCabinetBlock.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,21 @@ | ||
package com.redpandastudios.garth.integration.farmersdelight; | ||
|
||
import com.teamabnormals.blueprint.core.util.item.filling.TargetedItemCategoryFiller; | ||
import net.minecraft.core.NonNullList; | ||
import net.minecraft.world.item.CreativeModeTab; | ||
import net.minecraft.world.item.ItemStack; | ||
import vectorwing.farmersdelight.common.block.CabinetBlock; | ||
import vectorwing.farmersdelight.common.registry.ModItems; | ||
|
||
public class GarthCabinetBlock extends CabinetBlock { | ||
private static final TargetedItemCategoryFiller FILLER = new TargetedItemCategoryFiller(ModItems.WARPED_CABINET); | ||
|
||
public GarthCabinetBlock(Properties properties) { | ||
super(properties); | ||
} | ||
|
||
@Override | ||
public void fillItemCategory(CreativeModeTab tab, NonNullList<ItemStack> item) { | ||
FILLER.fillItem(this.asItem(), tab, item); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...main/java/com/redpandastudios/garth/integration/farmersdelight/GarthCabinetSuppliers.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,11 @@ | ||
package com.redpandastudios.garth.integration.farmersdelight; | ||
|
||
import net.minecraft.world.level.block.Block; | ||
import net.minecraft.world.level.block.Blocks; | ||
import net.minecraft.world.level.block.state.BlockBehaviour; | ||
|
||
import java.util.function.Supplier; | ||
|
||
public class GarthCabinetSuppliers { | ||
public static final Supplier<Block> CABINET = () -> new GarthCabinetBlock(BlockBehaviour.Properties.copy(Blocks.BARREL)); | ||
} |