2727
2828public class ClientProxy extends CommonProxy {
2929 @ Override
30- public void hintParticleTinted (World w , int x , int y , int z , IIcon [] icons , short [] RGBa ) {
31- EntityFXBlockHint hint = new EntityFXBlockHint (w , x , y , z , icons ).withColorTint (RGBa );
30+ public void hintParticleTinted (World world , int x , int y , int z , IIcon [] icons , short [] RGBa ) {
31+ EntityFXBlockHint hint = new EntityFXBlockHint (world , x , y , z , icons ).withColorTint (RGBa );
32+ followHintParticle (world ,hint ,x ,y ,z );
33+ }
34+
35+ public static void followHintParticle (World world , EntityFXBlockHint hint ,int x , int y , int z ) {
3236 Minecraft .getMinecraft ().effectRenderer .addEffect (hint );
3337 ensureHinting ();
3438 if (ConfigurationHandler .INSTANCE .isRemoveCollidingHologram ()) {
@@ -47,7 +51,7 @@ public void hintParticleTinted(World w, int x, int y, int z, IIcon[] icons, shor
4751 }
4852 currentHints .add (hint );
4953
50- EntityFX particle = new WeightlessParticleFX (w , x + RANDOM .nextFloat () * 0.5F , y + RANDOM .nextFloat () * 0.5F , z + RANDOM .nextFloat () * 0.5F , 0 , 0 , 0 );
54+ EntityFX particle = new WeightlessParticleFX (world , x + RANDOM .nextFloat () * 0.5F , y + RANDOM .nextFloat () * 0.5F , z + RANDOM .nextFloat () * 0.5F , 0 , 0 , 0 );
5155 particle .setRBGColorF (0 , 0.6F * RANDOM .nextFloat (), 0.8f );
5256 Minecraft .getMinecraft ().effectRenderer .addEffect (particle );
5357 }
@@ -120,7 +124,7 @@ public void startHinting(World w) {
120124 currentHints = new LinkedList <>();
121125 }
122126
123- private void ensureHinting () {
127+ private static void ensureHinting () {
124128 if (currentHints == null )
125129 currentHints = new LinkedList <>();
126130 }
0 commit comments