Skip to content

Commit

Permalink
Merge pull request #1276 from YocyCraft/dev/jei_enhancement
Browse files Browse the repository at this point in the history
Enhance JEI recipe catalyst and fix heliostas render 添加JEI工作方块显示,修复定日镜渲染
  • Loading branch information
ZhuRuoLing authored Dec 7, 2024
2 parents 8118484 + 3c7d009 commit 6acdae5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import net.minecraft.client.resources.model.ModelResourceLocation;

import com.mojang.blaze3d.vertex.PoseStack;
import net.minecraft.world.phys.AABB;
import org.jetbrains.annotations.NotNull;
import org.joml.Quaternionf;
import org.joml.Vector3f;
Expand Down Expand Up @@ -63,4 +64,9 @@ public void render(
);
poseStack.popPose();
}

@Override
public AABB getRenderBoundingBox(HeliostatsBlockEntity blockEntity) {
return AABB.ofSize(blockEntity.getBlockPos().getCenter().add(0, 0.5f, 0), 3, 2, 3);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,14 @@ public void registerRecipeCatalysts(IRecipeCatalystRegistration registration) {
JewelCraftingCategory.registerRecipeCatalysts(registration);

registration.addRecipeCatalyst(new ItemStack(ModBlocks.BATCH_CRAFTER), RecipeTypes.CRAFTING);

registration.addRecipeCatalyst(new ItemStack(ModBlocks.ROYAL_ANVIL), RecipeTypes.ANVIL);
registration.addRecipeCatalyst(new ItemStack(ModBlocks.EMBER_ANVIL), RecipeTypes.ANVIL);
registration.addRecipeCatalyst(new ItemStack(ModBlocks.GIANT_ANVIL), RecipeTypes.ANVIL);
registration.addRecipeCatalyst(new ItemStack(ModBlocks.SPECTRAL_ANVIL), RecipeTypes.ANVIL);

registration.addRecipeCatalyst(new ItemStack(ModBlocks.ROYAL_SMITHING_TABLE), RecipeTypes.SMITHING);
registration.addRecipeCatalyst(new ItemStack(ModBlocks.EMBER_SMITHING_TABLE), RecipeTypes.SMITHING);
}

@Override
Expand Down

0 comments on commit 6acdae5

Please sign in to comment.