rename method

This commit is contained in:
Sen 2025-07-20 00:10:36 +02:00
parent 3e58287efa
commit f97d952e7f
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
3 changed files with 4 additions and 4 deletions

View file

@ -88,7 +88,7 @@ public class RenderItem
GL11.glTranslatef(-0.5F, -0.5F, -0.5F); GL11.glTranslatef(-0.5F, -0.5F, -0.5F);
this.renderModel(model, stack); this.renderModel(model, stack);
if (stack.hasEffect()) if (stack.isGleaming())
{ {
this.renderEffect(model); this.renderEffect(model);
} }

View file

@ -145,7 +145,7 @@ public class Item {
return this.magnetic; return this.magnetic;
} }
public final boolean hasEffect(ItemStack stack) { public final boolean isGleaming(ItemStack stack) {
return this.gleaming || stack.isItemEnchanted(); return this.gleaming || stack.isItemEnchanted();
} }

View file

@ -244,8 +244,8 @@ public final class ItemStack {
return this.name != null; return this.name != null;
} }
public boolean hasEffect() { public boolean isGleaming() {
return this.item.hasEffect(this); return this.item.isGleaming(this);
} }
public TextColor getColor() { public TextColor getColor() {