mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-07-05 02:26:29 +02:00
47 lines
2.1 KiB
Java
47 lines
2.1 KiB
Java
package ellpeck.actuallyadditions.items.metalists;
|
|
|
|
import ellpeck.actuallyadditions.config.values.ConfigBoolValues;
|
|
import ellpeck.actuallyadditions.util.INameableItem;
|
|
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;
|
|
|
|
public enum TheSpecialDrops implements INameableItem{
|
|
|
|
SOLIDIFIED_EXPERIENCE("SolidifiedExperience", 40, 3, EntityCreature.class, EnumRarity.uncommon, ConfigBoolValues.EXPERIENCE_DROP.isEnabled(), "itemSolidifiedExperience"),
|
|
BLOOD_FRAGMENT("BloodFragment", 15, 1, EntityCreature.class, EnumRarity.uncommon, ConfigBoolValues.BLOOD_DROP.isEnabled(), "itemBloodFragment"),
|
|
HEART_PART("HeartPart", 5, 1, EntityCreature.class, EnumRarity.rare, ConfigBoolValues.HEART_DROP.isEnabled(), "itemHeartPart"),
|
|
UNKNOWN_SUBSTANCE("UnknownSubstance", 3, 1, EntitySkeleton.class, EnumRarity.epic, ConfigBoolValues.SUBSTANCE_DROP.isEnabled(), "itemUnknownSubstance"),
|
|
PEARL_SHARD("PearlShard", 30, 3, EntityEnderman.class, EnumRarity.epic, ConfigBoolValues.PEARL_SHARD_DROP.isEnabled(), "nuggetEnderpearl"),
|
|
EMERALD_SHARD("EmeraldShard", 30, 3, EntityCreeper.class, EnumRarity.rare, ConfigBoolValues.EMERALD_SHARD_CROP.isEnabled(), "nuggetEmerald");
|
|
|
|
public final String name;
|
|
public final String oredictName;
|
|
public final int chance;
|
|
public final int maxAmount;
|
|
public final Class<? extends EntityCreature> dropFrom;
|
|
public final boolean canDrop;
|
|
public final EnumRarity rarity;
|
|
|
|
TheSpecialDrops(String name, int chance, int maxAmount, Class<? extends EntityCreature> dropFrom, EnumRarity rarity, boolean canDrop, String oredictName){
|
|
this.name = name;
|
|
this.chance = chance;
|
|
this.rarity = rarity;
|
|
this.maxAmount = maxAmount;
|
|
this.dropFrom = dropFrom;
|
|
this.canDrop = canDrop;
|
|
this.oredictName = oredictName;
|
|
}
|
|
|
|
@Override
|
|
public String getName(){
|
|
return this.name;
|
|
}
|
|
|
|
@Override
|
|
public String getOredictName(){
|
|
return this.oredictName;
|
|
}
|
|
} |