ForgeAPI > EnumHelper

既存のEnumクラスにenum定数を追加するメソッドを提供するクラス

public static EnumAction addAction(String name)
 

右クリックでアイテムを使うときのアニメーションの種類
EnumAction
{
    none,
    eat,
    drink,
    block,
    bow;
}
 

public static EnumArmorMaterial addArmorMaterial(String name, int durability, int[] reductionAmounts, int enchantability)
 

防具の素材名と性能の種類
EnumArmorMaterial
{
    CLOTH(5, new int[]{1, 3, 2, 1}, 15),
    CHAIN(15, new int[]{2, 5, 4, 1}, 12),
    IRON(15, new int[]{2, 6, 5, 2}, 9),
    GOLD(7, new int[]{2, 5, 3, 1}, 25),
    DIAMOND(33, new int[]{3, 8, 6, 3}, 10);
}
 

public static EnumArt addArt(String name, String tile, int sizeX, int sizeY, int offsetX, int offsetY)
 

絵画の種類
EnumArt
{
    Kebab("Kebab", 16, 16, 0, 0),
    Aztec("Aztec", 16, 16, 16, 0),
    Alban("Alban", 16, 16, 32, 0),
    Aztec2("Aztec2", 16, 16, 48, 0),
    Bomb("Bomb", 16, 16, 64, 0),
    Plant("Plant", 16, 16, 80, 0),
    Wasteland("Wasteland", 16, 16, 96, 0),
    Pool("Pool", 32, 16, 0, 32),
    Courbet("Courbet", 32, 16, 32, 32),
    Sea("Sea", 32, 16, 64, 32),
    Sunset("Sunset", 32, 16, 96, 32),
    Creebet("Creebet", 32, 16, 128, 32),
    Wanderer("Wanderer", 16, 32, 0, 64),
    Graham("Graham", 16, 32, 16, 64),
    Match("Match", 32, 32, 0, 128),
    Bust("Bust", 32, 32, 32, 128),
    Stage("Stage", 32, 32, 64, 128),
    Void("Void", 32, 32, 96, 128),
    SkullAndRoses("SkullAndRoses", 32, 32, 128, 128),
    Fighters("Fighters", 64, 32, 0, 96),
    Pointer("Pointer", 64, 64, 0, 192),
    Pigscene("Pigscene", 64, 64, 64, 192),
    BurningSkull("BurningSkull", 64, 64, 128, 192),
    Skeleton("Skeleton", 64, 48, 192, 64),
    DonkeyKong("DonkeyKong", 64, 48, 192, 112);
}
 

public static EnumCreatureAttribute addCreatureAttribute(String name)
 

敵性Mobの種類. バニラでは未定義, アンデッド, 蜘蛛.
EnumCreaturAttribute
{
    UNDEFINED,
    UNDEAD,
    ARTHROPOD;
}
 

public static EnumCreatureType addCreatureType(String name, Class typeClass, int maxNumber, Material material, boolean peaceful)
 

Mobのタイプ. バニラではモンスター, 動物, イカ.
EnumCreatureType
{
    monster(IMob.class, 70, Material.air, false),
    creature(EntityAnimal.class, 15, Material.air, true),
    waterCreature(EntityWaterMob.class, 5, Material.water, true);
}
 

public static EnumDoor addDoor(String name)
 

ドアの種類と状態, GRATESはゾンビがドアを殴っている状態.
EnumDoor
{
    OPENING,
    WOOD_DOOR,
    GRATES,
    IRON_DOOR;
}
 

public static EnumEnchantmentType addEnchantmentType(String name)
 

エンチャント可能かどうか, 部位限定エンチャントかどうかの種類. エンチャントの種類ではない.
EnumEnchantmentType
{
    all,
    armor,
    armor_feet,
    armor_legs,
    armor_torso,
    armor_head,
    weapon,
    digger,
    bow;
}
 

public static EnumEntitySize addEntitySize(String name)
 

Entityの大きさの種類.
public enum EnumEntitySize
{
    SIZE_1,
    SIZE_2,
    SIZE_3,
    SIZE_4,
    SIZE_5,
    SIZE_6;
 

public static EnumMobType addMobType(String name)
 

Mob(Moving Object)の種類. マインクラフトではエンティティの種類でもある.
EnumMobType
{
    everything,
    mobs,
    players;
}
 

public static EnumMovingObjectType addMovingObjectType(String name)
 

チェストやかまどのようなTileEntityか, MobなどのEntityか.
EnumMovingObjectType
{
    TILE,
    ENTITY;
}
 

public static EnumSkyBlock addSkyBlock(String name, int lightValue)
 

明るさ15の空か, 明るさ0のブロックか.
EnumSkyBlock
{
    Sky(15),
    Block(0);
}
 

public static EnumStatus addStatus(String name)
 

なんらかのステータスに関するenum. 詳細不明.
EnumStatus
{
    OK,
    NOT_POSSIBLE_HERE,
    NOT_POSSIBLE_NOW,
    TOO_FAR_AWAY,
    OTHER_PROBLEM,
    NOT_SAFE;
}
 

public static EnumToolMaterial addToolMaterial(String name, int harvestLevel, int maxUses, float efficiency, int damage, int enchantability)
 

各種ツールの素材と性能.
EnumToolMaterial
{
    WOOD(0, 59, 2.0F, 0, 15),
    STONE(1, 131, 4.0F, 1, 5),
    IRON(2, 250, 6.0F, 2, 14),
    EMERALD(3, 1561, 8.0F, 3, 10),
    GOLD(0, 32, 12.0F, 0, 22);
}
 
最終更新:2012年08月24日 18:18