Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ManaStar committed May 19, 2022
1 parent 8acb0fc commit a205a2b
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 2 deletions.
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ buildscript {
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
classpath(group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true) { exclude group: 'org.apache.logging.log4j' }
classpath 'org.apache.logging.log4j:log4j-api:2.11.2'
classpath 'org.apache.logging.log4j:log4j-core:2.11.2'
classpath 'org.parchmentmc:librarian:1.+'
}
}
Expand Down
1 change: 0 additions & 1 deletion src/main/java/com/redpandastudios/garth/core/Garth.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
public class Garth
{
public static final String MOD_ID = "garth";

public static final Logger LOGGER = LogUtils.getLogger();
public static final RegistryHelper REGISTRY_HELPER = new RegistryHelper(MOD_ID);

Expand Down
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();
}
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);
}
}
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));
}

0 comments on commit a205a2b

Please sign in to comment.