Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issues to solve on fabric side #2

Open
4 tasks
Trinsdar opened this issue Jan 13, 2025 · 0 comments
Open
4 tasks

issues to solve on fabric side #2

Trinsdar opened this issue Jan 13, 2025 · 0 comments

Comments

@Trinsdar
Copy link
Member

Trinsdar commented Jan 13, 2025

  • add onItemUseFirst to felt api
  • add fake enchantment stuff from forge 1.19 to felt api
  • fix bucket colors
  • don't know what event to register to for ClientEvents.onRenderDebugInfo, tried WorldRenderEvents.BEFORE_DEBUG_INFO, but that doesn't provide the List<String> required
    public static void onRenderDebugInfo(ArrayList<String> left) {
    if (!MC.options.renderDebug || MC.hitResult == null || MC.hitResult.getType() != HitResult.Type.BLOCK)
    return;
    Level world = Minecraft.getInstance().level;
    if (world == null) return;
    BlockPos pos = new BlockPos(MC.hitResult.getLocation());
    BlockState state = world.getBlockState(pos);
    if (state.getBlock() instanceof IInfoProvider info) {
    left.add("");
    left.add(ChatFormatting.AQUA + "[Antimatter Debug Server]");
    left.addAll(info.getInfo(new ObjectArrayList<>(), world, state, pos, false));
    }
    BlockEntity tile = world.getBlockEntity(pos);
    if (tile instanceof BlockEntityBase<?> b) {
    left.addAll(b.getInfo(false));
    }
    if (MC.player.isCrouching()) {
    left.add("");
    left.add(ChatFormatting.AQUA + "[Antimatter Debug Client]");
    }
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant