aether-legacy/src/main/java/com/legacy/aether/api/moa/MoaProperties.java
2018-12-06 23:32:48 -06:00

40 lines
763 B
Java

package com.legacy.aether.api.moa;
import net.minecraft.util.ResourceLocation;
public class MoaProperties {
private int maxJumps;
private float moaSpeed;
private ResourceLocation location = null;
public MoaProperties(int maxJumps, float moaSpeed) {
this.maxJumps = maxJumps;
this.moaSpeed = moaSpeed;
}
public MoaProperties(int maxJumps, float moaSpeed, ResourceLocation location) {
this(maxJumps, moaSpeed);
this.location = location;
}
public int getMaxJumps() {
return this.maxJumps;
}
public float getMoaSpeed() {
return this.moaSpeed;
}
public boolean hasCustomTexture() {
return this.location != null;
}
public ResourceLocation getCustomTexture(boolean isSaddled, boolean isBeingRidden) {
return this.location;
}
}