Ultimine Conduits Compat #1097
No reviewers
Labels
No labels
Area-Assets
Area-Backend
Area-Conduits
Area-Datapacks
Area-Lang
Area-Mod Compat
Area-Parity
Area-Rendering
Good first issue
MC-1.19.2
MC-1.20.1
MC-1.20.4
MC-1.20.6
MC-1.21
MC-1.21.1
Modtoberfest
P-0-High
P-1-Medium
P-2-Low
Status-Awaiting Response
Status-Behind-Flag
Status-Blocked
Status-Cannot Reproduce
Status-Duplicate
Status-Help Wanted
Status-Incomplete Report
Status-Invalid
Status-Needs LTS Backport
Status-Needs Updating
Status-Stale
Status-To Implement
Status-Triage
Status-Wontfix
Status-Wontmerge
Type-Backport
Type-Bug
Type-Documentation
Type-Enhancement
Type-Question
Type-RFC
Type-Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Team-EnderIO/EnderIO#1097
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/conduit-ultimine-compat"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Uses a new FTB Ultimine API to ensure that conduits can be broken correctly, without destroying entire bundles or the incorrect conduits.
Visually all bundles are still highlighted, but the correct action will be performed.
Many thanks to the FTB Team for creating this API.
TODO
Checklist
Summary by CodeRabbit
New Features
Bug Fixes
Chores
Documentation
Walkthrough
This update introduces direct integration between EnderIO conduits and the FTB Ultimine mod. It adds new Maven repositories and dependencies for FTB Ultimine, implements conduit-specific block break and selection handlers for vein mining compatibility, and adjusts item drop logic to support positional drops. Several new classes and methods facilitate this integration.
Changes
buildSrc/shared.gradle.kts,enderio/build.gradle.kts,enderio-conduits/build.gradle.kts,gradle.propertiesftbUltimineVersionproperty, and included FTB Ultimine as a dependency for both runtime and compile-only contexts.enderio-conduits/src/main/java/com/enderio/conduits/EnderIOConduits.java,enderio-conduits/src/main/java/com/enderio/conduits/integration/ftb_ultimine/FTBUltimineCompat.javaenderio-conduits/src/main/java/com/enderio/conduits/common/conduit/bundle/ConduitBundleBlockEntity.javaremoveConduitand item drop methods to accept explicit drop positions; improved facade provider handling in NBT loading.enderio-conduits/src/main/java/com/enderio/conduits/integration/ftb_ultimine/ConduitBlockBreakHandler.java,enderio-conduits/src/main/java/com/enderio/conduits/integration/ftb_ultimine/ConduitBlockSelectionHandler.javaenderio-conduits/src/main/java/com/enderio/conduits/api/bundle/ConduitBundle.java,enderio-conduits/src/main/java/com/enderio/conduits/integration/ftb_ultimine/package-info.javaSequence Diagram(s)
Estimated code review effort
🎯 4 (Complex) | ⏱️ ~40 minutes
Possibly related issues
Possibly related PRs
Suggested labels
Area-Backend,Type-EnhancementPoem
✨ Finishing Touches
🧪 Generate unit tests
feat/conduit-ultimine-compatThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
🪧 Tips
Chat
There are 3 ways to chat with CodeRabbit:
I pushed a fix in commit <commit_id>, please review it.Explain this complex logic.Open a follow-up GitHub issue for this discussion.@coderabbitaiin a new review comment at the desired location with your query. Examples:@coderabbitai explain this code block.@coderabbitaiin a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.@coderabbitai read src/utils.ts and explain its main purpose.@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.Support
Need help? Create a ticket on our support page for assistance with any issues or questions.
CodeRabbit Commands (Invoked using PR comments)
@coderabbitai pauseto pause the reviews on a PR.@coderabbitai resumeto resume the paused reviews.@coderabbitai reviewto trigger an incremental review. This is useful when automatic reviews are disabled for the repository.@coderabbitai full reviewto do a full review from scratch and review all the files again.@coderabbitai summaryto regenerate the summary of the PR.@coderabbitai generate docstringsto generate docstrings for this PR.@coderabbitai generate sequence diagramto generate a sequence diagram of the changes in this PR.@coderabbitai generate unit teststo generate unit tests for this PR.@coderabbitai resolveresolve all the CodeRabbit review comments.@coderabbitai configurationto show the current CodeRabbit configuration for the repository.@coderabbitai helpto get help.Other keywords and placeholders
@coderabbitai ignoreanywhere in the PR description to prevent this PR from being reviewed.@coderabbitai summaryto generate the high-level summary at a specific location in the PR description.@coderabbitaianywhere in the PR title to generate the title automatically.CodeRabbit Configuration File (
.coderabbit.yaml).coderabbit.yamlfile to the root of your repository.# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.jsonDocumentation and Community
Once FTB Ultimine releases the latest block selection API, this will be ready for merge.
Actionable comments posted: 1
🧹 Nitpick comments (5)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📥 Commits
Reviewing files that changed from the base of the PR and between
84bfe2477aanda6f1cfcb14.📒 Files selected for processing (11)
buildSrc/shared.gradle.kts(1 hunks)enderio-conduits/build.gradle.kts(2 hunks)enderio-conduits/src/main/java/com/enderio/conduits/EnderIOConduits.java(2 hunks)enderio-conduits/src/main/java/com/enderio/conduits/api/bundle/ConduitBundle.java(1 hunks)enderio-conduits/src/main/java/com/enderio/conduits/common/conduit/bundle/ConduitBundleBlockEntity.java(7 hunks)enderio-conduits/src/main/java/com/enderio/conduits/integration/ftb_ultimine/ConduitBlockBreakHandler.java(1 hunks)enderio-conduits/src/main/java/com/enderio/conduits/integration/ftb_ultimine/ConduitBlockSelectionHandler.java(1 hunks)enderio-conduits/src/main/java/com/enderio/conduits/integration/ftb_ultimine/FTBUltimineCompat.java(1 hunks)enderio-conduits/src/main/java/com/enderio/conduits/integration/ftb_ultimine/package-info.java(1 hunks)enderio/build.gradle.kts(2 hunks)gradle.properties(1 hunks)🧰 Additional context used
🧠 Learnings (1)
📚 Learning: for neoforge event subscribers, entitytickevent.pre and other runtime gameplay events should use bus...
Applied to files:
enderio-conduits/src/main/java/com/enderio/conduits/EnderIOConduits.java⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
🔇 Additional comments (17)
@ -0,0 +1,117 @@package com.enderio.conduits.integration.ftb_ultimine;⚠️ Potential issue
Use ConcurrentHashMap for thread-safe player operations.
The
breakOperationsmap is accessed by multiple players potentially from different threads. Using a regular HashMap could lead to race conditions and data corruption.Apply this diff to fix the concurrency issue:
🤖 Prompt for AI Agents
Actionable comments posted: 0
♻️ Duplicate comments (1)
🧹 Nitpick comments (1)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📥 Commits
Reviewing files that changed from the base of the PR and between
a6f1cfcb14and4e331dd5b8.📒 Files selected for processing (4)
buildSrc/shared.gradle.kts(1 hunks)enderio-conduits/src/main/java/com/enderio/conduits/api/bundle/ConduitBundle.java(1 hunks)enderio-conduits/src/main/java/com/enderio/conduits/integration/ftb_ultimine/ConduitBlockBreakHandler.java(1 hunks)gradle.properties(1 hunks)✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
🔇 Additional comments (4)