|
|
|
@ -42,6 +42,7 @@ import net.minecraft.item.ItemGroup;
|
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
|
import net.minecraft.registry.Registries;
|
|
|
|
|
import net.minecraft.registry.Registry;
|
|
|
|
|
import net.minecraft.registry.RegistryKey;
|
|
|
|
|
import net.minecraft.registry.RegistryKeys;
|
|
|
|
|
import net.minecraft.registry.tag.TagKey;
|
|
|
|
|
import net.minecraft.screen.ScreenHandlerType;
|
|
|
|
@ -66,69 +67,73 @@ public class RegistryManager {
|
|
|
|
|
public static final ScreenHandlerType<BlockStackerScreenHandler> BLOCKSTACKER_SCREEN_HANDLER = ScreenHandlerRegistry
|
|
|
|
|
.registerSimple(RegistryManager.STACKER_IDENTIFIER, BlockStackerScreenHandler::new);
|
|
|
|
|
|
|
|
|
|
public static final ItemGroup QUICKIEFABRIC_GROUP = FabricItemGroup.builder()
|
|
|
|
|
.displayName(Text.literal(QUICKIEFABRIC))
|
|
|
|
|
.icon(() -> new ItemStack(QuickieItems.SPEEDPOWDER))
|
|
|
|
|
.entries((enabledFeatures, stacks) -> {
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.SALPETER));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.SULPHOR));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.SPEEDPOWDER));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.LEVELUP));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.PENCIL));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.ROTTEN_FLESH_STRIPES));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.CARROTSTACK));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.COTTON));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.COTTONSEED));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.BACKPACK_BROWN));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.BACKPACK_WHITE));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.BACKPACK_BLACK));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.BACKPACK_BLUE));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.BACKPACK_CYAN));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.BACKPACK_GREEN));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.BACKPACK_PINK));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.BACKPACK_RED));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.BACKPACK_YELLOW));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.BACKPACK_DARKGRAY));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.BACKPACK_LIGHTGRAY));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.BACKPACK_LIGHTGREEN));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.BACKPACK_MAGENTA));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.BACKPACK_ORANGE));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.BACKPACK_PURPLE));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.BACKPACK_LIGHTBLUE));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.BAG));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.STUB));
|
|
|
|
|
stacks.add(new ItemStack(QuickieTools.SPEEDPOWDERAXE));
|
|
|
|
|
stacks.add(new ItemStack(QuickieTools.SPEEDPOWDERPICKAXE));
|
|
|
|
|
stacks.add(new ItemStack(QuickieTools.SPEEDPOWDERSHOVEL));
|
|
|
|
|
stacks.add(new ItemStack(QuickieTools.SPEEDPOWDERHOE));
|
|
|
|
|
stacks.add(new ItemStack(QuickieTools.SPEEDPOWDERWATERHOE));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.DIRT_SALPETER));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.ORE_NETHER_SULPHOR));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.ORE_SALPETER));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.ORE_SAND_SALPETER));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.ORE_SULPHOR));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.ORE_DEEPSLATESULPHOR));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.SAND_SALPETER));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.LAVAHOARDER));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.EMPTYLAVAHOARDER));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.ITEMHOARDER));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.MONSTERHOARDER));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.KELPSTACK));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.BLOCKSULPHOR));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.DRILL_DOWN));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.DRILL_EAST));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.DRILL_SOUTH));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.DRILL_WEST));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.DRILL_NORTH));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.DRILLSTOP));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.BLOCKSTACKERUP));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.BLOCKSTACKERDOWN));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.BLOCKSTACKEREAST));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.BLOCKSTACKERWEST));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.BLOCKSTACKERNORTH));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.BLOCKSTACKERSOUTH));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.BLOCKSPREADER));
|
|
|
|
|
}).build();
|
|
|
|
|
public static final RegistryKey<ItemGroup> QUICKIEFABRIC_GROUP = RegistryKey.of(RegistryKeys.ITEM_GROUP,
|
|
|
|
|
new Identifier(QUICKIEFABRIC, "itemgroups"));
|
|
|
|
|
|
|
|
|
|
public static final void registerItemGroup() {
|
|
|
|
|
Registry.register(Registries.ITEM_GROUP, QUICKIEFABRIC_GROUP,
|
|
|
|
|
FabricItemGroup.builder().icon(() -> new ItemStack(QuickieItems.SPEEDPOWDER))
|
|
|
|
|
.displayName(Text.literal(QUICKIEFABRIC)).entries((enabledFeatures, stacks) -> {
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.SALPETER));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.SULPHOR));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.SPEEDPOWDER));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.LEVELUP));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.PENCIL));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.ROTTEN_FLESH_STRIPES));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.CARROTSTACK));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.COTTON));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.COTTONSEED));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.BACKPACK_BROWN));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.BACKPACK_WHITE));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.BACKPACK_BLACK));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.BACKPACK_BLUE));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.BACKPACK_CYAN));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.BACKPACK_GREEN));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.BACKPACK_PINK));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.BACKPACK_RED));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.BACKPACK_YELLOW));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.BACKPACK_DARKGRAY));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.BACKPACK_LIGHTGRAY));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.BACKPACK_LIGHTGREEN));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.BACKPACK_MAGENTA));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.BACKPACK_ORANGE));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.BACKPACK_PURPLE));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.BACKPACK_LIGHTBLUE));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.BAG));
|
|
|
|
|
stacks.add(new ItemStack(QuickieItems.STUB));
|
|
|
|
|
stacks.add(new ItemStack(QuickieTools.SPEEDPOWDERAXE));
|
|
|
|
|
stacks.add(new ItemStack(QuickieTools.SPEEDPOWDERPICKAXE));
|
|
|
|
|
stacks.add(new ItemStack(QuickieTools.SPEEDPOWDERSHOVEL));
|
|
|
|
|
stacks.add(new ItemStack(QuickieTools.SPEEDPOWDERHOE));
|
|
|
|
|
stacks.add(new ItemStack(QuickieTools.SPEEDPOWDERWATERHOE));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.DIRT_SALPETER));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.ORE_NETHER_SULPHOR));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.ORE_SALPETER));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.ORE_SAND_SALPETER));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.ORE_SULPHOR));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.ORE_DEEPSLATESULPHOR));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.SAND_SALPETER));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.LAVAHOARDER));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.EMPTYLAVAHOARDER));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.ITEMHOARDER));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.MONSTERHOARDER));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.KELPSTACK));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.BLOCKSULPHOR));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.DRILL_DOWN));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.DRILL_EAST));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.DRILL_SOUTH));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.DRILL_WEST));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.DRILL_NORTH));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.DRILLSTOP));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.BLOCKSTACKERUP));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.BLOCKSTACKERDOWN));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.BLOCKSTACKEREAST));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.BLOCKSTACKERWEST));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.BLOCKSTACKERNORTH));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.BLOCKSTACKERSOUTH));
|
|
|
|
|
stacks.add(new ItemStack(QuickieBlocks.BLOCKSPREADER));
|
|
|
|
|
}).build());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static final void registerBlock(Block block, String name) {
|
|
|
|
|
Registry.register(Registries.BLOCK, new Identifier(QUICKIEFABRIC, name), block);
|
|
|
|
@ -274,8 +279,8 @@ public class RegistryManager {
|
|
|
|
|
BiomeSelectors.foundInOverworld(), FeaturesManager.overworldOres());
|
|
|
|
|
|
|
|
|
|
// Nether features
|
|
|
|
|
BiomeModifications.create(new Identifier(QUICKIEFABRIC, "nether_features"))
|
|
|
|
|
.add(ModificationPhase.ADDITIONS, BiomeSelectors.foundInTheNether(), FeaturesManager.netherOres());
|
|
|
|
|
BiomeModifications.create(new Identifier(QUICKIEFABRIC, "nether_features")).add(ModificationPhase.ADDITIONS,
|
|
|
|
|
BiomeSelectors.foundInTheNether(), FeaturesManager.netherOres());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static final void registerLootings() {
|
|
|
|
|