effect command
This commit is contained in:
parent
6c0bd5481f
commit
66421e806e
16 changed files with 393 additions and 16 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue