BiomesOPlenty/apis/ttftcuts/atg/api/events/ATGBiomeEvent.java

30 lines
793 B
Java
Raw Normal View History

2013-10-21 18:05:20 +00:00
package ttftcuts.atg.api.events;
import ttftcuts.atg.api.ATGBiomes.BiomeType;
import com.google.common.base.Optional;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraftforge.event.Event;
public class ATGBiomeEvent extends Event {
public static enum ResponseType { NONE, ADDED, REPLACED, BAD_GROUP, FAILED };
public BiomeType type;
public ResponseType response;
public String group;
public BiomeGenBase biome;
public BiomeGenBase replaced;
public double weight;
public ATGBiomeEvent(BiomeType type, String group, BiomeGenBase biome, BiomeGenBase replaced, double weight) {
this.type = type;
this.group = group;
this.biome = biome;
this.replaced = replaced;
this.weight = weight;
this.response = ResponseType.NONE;
}
}