Skip to content

Commit

Permalink
移除侧边栏的方块显示
Browse files Browse the repository at this point in the history
  • Loading branch information
Gu-ZT committed Jun 12, 2024
1 parent 7a0cbad commit 5d237e2
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,17 @@
import dev.dubhe.anvilcraft.api.recipe.AnvilRecipeManager;
import dev.dubhe.anvilcraft.init.ModBlocks;
import dev.dubhe.anvilcraft.integration.emi.recipe.AnvilProcessEmiRecipe;
import dev.dubhe.anvilcraft.integration.emi.stack.BlockStateEmiStack;
import dev.emi.emi.api.EmiEntrypoint;
import dev.emi.emi.api.EmiPlugin;
import dev.emi.emi.api.EmiRegistry;
import dev.emi.emi.api.stack.EmiStack;
import net.minecraft.core.registries.BuiltInRegistries;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.Blocks;
import org.jetbrains.annotations.NotNull;

@EmiEntrypoint
public class AnvilCraftEmiPlugin implements EmiPlugin {
@Override
public void register(EmiRegistry registry) {
for (Block block : BuiltInRegistries.BLOCK) {
EmiStack stack = BlockStateEmiStack.of(block.defaultBlockState());
registry.addEmiStack(stack);
}
public void register(@NotNull EmiRegistry registry) {
AnvilRecipeCategory.ALL.forEach(registry::addCategory);

registry.addWorkstation(AnvilRecipeCategory.STAMPING, EmiStack.of(ModBlocks.STAMPING_PLATFORM.get()));
Expand Down

0 comments on commit 5d237e2

Please sign in to comment.