Skip to content

Commit

Permalink
registry
Browse files Browse the repository at this point in the history
  • Loading branch information
unix-supremacist committed Dec 8, 2023
1 parent f1ce517 commit c530516
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import io.github.unix_supremacist.Alchemist;
import io.github.unix_supremacist.alabli.Alabli;
import io.github.unix_supremacist.alabli.AlabliRegistry;
import io.github.unix_supremacist.block.TransmutionCircleBlock;
import lombok.Getter;
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
Expand All @@ -16,6 +17,6 @@ public enum AlchemistBlocks {

AlchemistBlocks(Block block){
this.block = block;
Registry.register(BuiltInRegistries.BLOCK, new ResourceLocation(Alchemist.MODID, this.name()), block);
AlabliRegistry.registerBlock(block, this.name());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import io.github.unix_supremacist.Alchemist;
import io.github.unix_supremacist.alabli.Alabli;
import io.github.unix_supremacist.alabli.AlabliRegistry;
import io.github.unix_supremacist.item.*;
import lombok.Getter;
import net.fabricmc.fabric.api.registry.FuelRegistry;
Expand Down Expand Up @@ -64,7 +65,6 @@ public enum AlchemistItems {
AlchemistItems(Item item, int burntime){
this.item = item;
FuelRegistry.INSTANCE.add(item, burntime);
Registry.register(BuiltInRegistries.ITEM, new ResourceLocation(Alchemist.MODID, this.name()), item);
Alabli.items.add(item);
AlabliRegistry.registerItem(item, this.name());
}
}

0 comments on commit c530516

Please sign in to comment.