
net.minecraft.server.AttributeBase Maven / Gradle / Ivy
package net.minecraft.server;
public abstract class AttributeBase implements IAttribute {
private final IAttribute a;
private final String b;
private final double c;
private boolean d;
protected AttributeBase(IAttribute iattribute, String s, double d0) {
this.a = iattribute;
this.b = s;
this.c = d0;
if (s == null) {
throw new IllegalArgumentException("Name cannot be null!");
}
}
public String getName() {
return this.b;
}
public double b() {
return this.c;
}
public boolean c() {
return this.d;
}
public AttributeBase a(boolean flag) {
this.d = flag;
return this;
}
public IAttribute d() {
return this.a;
}
public int hashCode() {
return this.b.hashCode();
}
public boolean equals(Object object) {
return object instanceof IAttribute && this.b.equals(((IAttribute) object).getName());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy