Skip to content

Commit

Permalink
Use direct white rendering on the screen instead of lodestone screen …
Browse files Browse the repository at this point in the history
…particles, fix #253
  • Loading branch information
doctor4t committed Sep 24, 2024
1 parent 801c6f3 commit 81a5442
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/client/java/org/ladysnake/effective/core/Effective.java
Original file line number Diff line number Diff line change
Expand Up @@ -257,23 +257,5 @@ public void onInitializeClient() {
freezeFrames = -1;
}
});

WorldRenderEvents.LAST.register(context -> {
// ULTRAKILL Parry effect; doesn't work but I'm too lazy to fix it now
// ScreenParticleBuilder b2 = ScreenParticleBuilder.create(LodestoneScreenParticleRegistry.SPARKLE, effectiveScreenParticleHolder)
// .setTransparencyData(GenericParticleData.create(1000f).build())
// .setScaleData(GenericParticleData.create(1000000f).build())
// .setColorData(ColorParticleData.create(new Color(0xFFFFFF), new Color(0xFFFFFF)).build())
// .setLifetime(10)
// .setRenderType(LodestoneScreenParticleRenderType.ADDITIVE);
// b2.spawn(-50, 50);
//
// effectiveScreenParticleHolder.particles.forEach((lodestoneScreenParticleRenderType, screenParticles) -> {
// System.out.println(lodestoneScreenParticleRenderType);
// });
// ScreenParticleHandler.addParticle(effectiveScreenParticleHolder, b2.getParticleOptions(), 0.5, 0.5, 1, 1);
// ScreenParticleHandler.renderParticles(effectiveScreenParticleHolder);
// effectiveScreenParticleHolder.tick();
});
}
}
12 changes: 12 additions & 0 deletions src/client/java/org/ladysnake/effective/core/gui/ParryScreen.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
package org.ladysnake.effective.core.gui;

import net.minecraft.client.gui.DrawContext;
import net.minecraft.client.gui.screen.Screen;
import net.minecraft.client.gui.widget.ClickableWidget;
import net.minecraft.text.Text;

import java.awt.*;

public class ParryScreen extends Screen {
public ParryScreen() {
super(Text.literal(""));
}

@Override
public void render(DrawContext context, int mouseX, int mouseY, float delta) {
context.fillGradient(0, 0, this.width, this.height, 0xAAFFFFFF, 0xAAFFFFFF);

super.render(context, mouseX, mouseY, delta);
}

}

0 comments on commit 81a5442

Please sign in to comment.