2015-08-29 14:33:25 +02:00
|
|
|
|
/*
|
|
|
|
|
* This file ("TheSpecialDrops.java") is part of the Actually Additions Mod for Minecraft.
|
|
|
|
|
* It is created and owned by Ellpeck and distributed
|
|
|
|
|
* under the Actually Additions License to be found at
|
|
|
|
|
* http://github.com/Ellpeck/ActuallyAdditions/blob/master/README.md
|
|
|
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
|
|
|
*
|
|
|
|
|
* <EFBFBD> 2015 Ellpeck
|
|
|
|
|
*/
|
|
|
|
|
|
2015-03-07 12:51:28 +01:00
|
|
|
|
package ellpeck.actuallyadditions.items.metalists;
|
2015-03-07 02:23:31 +01:00
|
|
|
|
|
2015-04-24 19:22:03 +02:00
|
|
|
|
import ellpeck.actuallyadditions.config.values.ConfigBoolValues;
|
2015-04-04 05:20:19 +02:00
|
|
|
|
import ellpeck.actuallyadditions.util.INameableItem;
|
2015-03-07 02:23:31 +01:00
|
|
|
|
import net.minecraft.entity.EntityCreature;
|
|
|
|
|
import net.minecraft.entity.monster.EntityCreeper;
|
|
|
|
|
import net.minecraft.entity.monster.EntityEnderman;
|
|
|
|
|
import net.minecraft.entity.monster.EntitySkeleton;
|
|
|
|
|
import net.minecraft.item.EnumRarity;
|
|
|
|
|
|
2015-04-04 05:20:19 +02:00
|
|
|
|
public enum TheSpecialDrops implements INameableItem{
|
2015-03-07 02:23:31 +01:00
|
|
|
|
|
2015-07-02 10:45:15 +02:00
|
|
|
|
SOLIDIFIED_EXPERIENCE("SolidifiedExperience", 40, 3, EntityCreature.class, EnumRarity.uncommon, ConfigBoolValues.EXPERIENCE_DROP.isEnabled()),
|
|
|
|
|
BLOOD_FRAGMENT("BloodFragment", 15, 1, EntityCreature.class, EnumRarity.uncommon, ConfigBoolValues.BLOOD_DROP.isEnabled()),
|
|
|
|
|
HEART_PART("HeartPart", 5, 1, EntityCreature.class, EnumRarity.rare, ConfigBoolValues.HEART_DROP.isEnabled()),
|
|
|
|
|
UNKNOWN_SUBSTANCE("UnknownSubstance", 3, 1, EntitySkeleton.class, EnumRarity.epic, ConfigBoolValues.SUBSTANCE_DROP.isEnabled()),
|
|
|
|
|
PEARL_SHARD("PearlShard", 30, 3, EntityEnderman.class, EnumRarity.epic, ConfigBoolValues.PEARL_SHARD_DROP.isEnabled()),
|
|
|
|
|
EMERALD_SHARD("EmeraldShard", 30, 3, EntityCreeper.class, EnumRarity.rare, ConfigBoolValues.EMERALD_SHARD_CROP.isEnabled());
|
2015-03-07 02:23:31 +01:00
|
|
|
|
|
|
|
|
|
public final String name;
|
|
|
|
|
public final int chance;
|
|
|
|
|
public final int maxAmount;
|
|
|
|
|
public final Class<? extends EntityCreature> dropFrom;
|
|
|
|
|
public final boolean canDrop;
|
|
|
|
|
public final EnumRarity rarity;
|
|
|
|
|
|
2015-07-02 10:45:15 +02:00
|
|
|
|
TheSpecialDrops(String name, int chance, int maxAmount, Class<? extends EntityCreature> dropFrom, EnumRarity rarity, boolean canDrop){
|
2015-03-07 02:23:31 +01:00
|
|
|
|
this.name = name;
|
|
|
|
|
this.chance = chance;
|
|
|
|
|
this.rarity = rarity;
|
|
|
|
|
this.maxAmount = maxAmount;
|
|
|
|
|
this.dropFrom = dropFrom;
|
|
|
|
|
this.canDrop = canDrop;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String getName(){
|
|
|
|
|
return this.name;
|
|
|
|
|
}
|
|
|
|
|
}
|