effect command

This commit is contained in:
Sen 2025-03-25 17:02:41 +01:00
parent 6c0bd5481f
commit 66421e806e
16 changed files with 393 additions and 16 deletions

View file

@ -78,6 +78,7 @@ public class Potion
// public static final Potion field_180146_G = null;
public final int id;
public final String sid;
private final Map<Attribute, AttributeModifier> modifiers = Maps.<Attribute, AttributeModifier>newHashMap();
private final boolean bad;
private final int color;
@ -91,6 +92,7 @@ public class Potion
protected Potion(int potionID, String location, boolean badEffect, int potionColor)
{
this.id = potionID;
this.sid = location;
POTION_TYPES[potionID] = this;
POTION_MAP.put(location, this);
this.bad = badEffect;
@ -404,4 +406,8 @@ public class Potion
{
return modifier.getAmount() * (double)(p_111183_1_ + 1);
}
public String toString() {
return this.sid;
}
}