MineLittlePony/src/main/java/com/minelittlepony/PonyConfig.java

35 lines
1.1 KiB
Java
Raw Normal View History

2016-11-17 05:45:04 +01:00
package com.minelittlepony;
2015-08-02 00:36:33 +02:00
import com.google.gson.annotations.Expose;
import com.mumfrey.liteloader.modconfig.ConfigStrategy;
2016-01-26 09:16:11 +01:00
import com.mumfrey.liteloader.modconfig.Exposable;
import com.mumfrey.liteloader.modconfig.ExposableOptions;
@ExposableOptions(filename = "minelittlepony", strategy = ConfigStrategy.Unversioned)
2016-01-26 09:16:11 +01:00
public class PonyConfig implements Exposable {
@Expose private PonyLevel ponylevel = PonyLevel.PONIES;
@Expose public boolean sizes = true;
@Expose public boolean snuzzles = true;
@Expose public boolean hd = true;
@Expose public boolean showscale = true;
@Expose public boolean villagers = true;
@Expose public boolean zombies = true;
@Expose public boolean pigzombies = true;
@Expose public boolean skeletons = true;
@Expose public boolean illagers = true;
public PonyLevel getPonyLevel(boolean ignorePony) {
return ignorePony ? PonyLevel.BOTH : getPonyLevel();
}
2016-01-26 09:16:11 +01:00
public PonyLevel getPonyLevel() {
if (ponylevel == null) ponylevel = PonyLevel.PONIES;
return ponylevel;
2015-08-02 00:36:33 +02:00
}
2016-01-26 09:16:11 +01:00
public void setPonyLevel(PonyLevel ponylevel) {
this.ponylevel = ponylevel;
}
2015-08-02 00:36:33 +02:00
}