当前位置: 首页>>代码示例>>Java>>正文


Java Art类代码示例

本文整理汇总了Java中org.bukkit.Art的典型用法代码示例。如果您正苦于以下问题:Java Art类的具体用法?Java Art怎么用?Java Art使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


Art类属于org.bukkit包,在下文中一共展示了Art类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setArt

import org.bukkit.Art; //导入依赖的package包/类
public boolean setArt(Art art, boolean force) {
    net.minecraft.entity.item.EntityPainting painting = this.getHandle();
    net.minecraft.entity.item.EntityPainting.EnumArt oldArt = painting.art;
    painting.art = CraftArt.BukkitToNotch(art);
    painting.setDirection(painting.hangingDirection);
    if (!force && !painting.onValidSurface()) {
        // Revert painting since it doesn't fit
        painting.art = oldArt;
        painting.setDirection(painting.hangingDirection);
        return false;
    }
    this.update();
    return true;
}
 
开发者ID:UraniumMC,项目名称:Uranium,代码行数:15,代码来源:CraftPainting.java

示例2: NotchToBukkit

import org.bukkit.Art; //导入依赖的package包/类
public static Art NotchToBukkit(net.minecraft.entity.item.EntityPainting.EnumArt art) {
    switch (art) {
        case Kebab: return Art.KEBAB;
        case Aztec: return Art.AZTEC;
        case Alban: return Art.ALBAN;
        case Aztec2: return Art.AZTEC2;
        case Bomb: return Art.BOMB;
        case Plant: return Art.PLANT;
        case Wasteland: return Art.WASTELAND;
        case Pool: return Art.POOL;
        case Courbet: return Art.COURBET;
        case Sea: return Art.SEA;
        case Sunset: return Art.SUNSET;
        case Creebet: return Art.CREEBET;
        case Wanderer: return Art.WANDERER;
        case Graham: return Art.GRAHAM;
        case Match: return Art.MATCH;
        case Bust: return Art.BUST;
        case Stage: return Art.STAGE;
        case Void: return Art.VOID;
        case SkullAndRoses: return Art.SKULL_AND_ROSES;
        case Fighters: return Art.FIGHTERS;
        case Pointer: return Art.POINTER;
        case Pigscene: return Art.PIGSCENE;
        case BurningSkull: return Art.BURNINGSKULL;
        case Skeleton: return Art.SKELETON;
        case DonkeyKong: return Art.DONKEYKONG;
        case Wither: return Art.WITHER;
        default:
            throw new AssertionError(art);
    }
}
 
开发者ID:UraniumMC,项目名称:Uranium,代码行数:33,代码来源:CraftArt.java

示例3: BukkitToNotch

import org.bukkit.Art; //导入依赖的package包/类
public static net.minecraft.entity.item.EntityPainting.EnumArt BukkitToNotch(Art art) {
    switch (art) {
        case KEBAB: return net.minecraft.entity.item.EntityPainting.EnumArt.Kebab;
        case AZTEC: return net.minecraft.entity.item.EntityPainting.EnumArt.Aztec;
        case ALBAN: return net.minecraft.entity.item.EntityPainting.EnumArt.Alban;
        case AZTEC2: return net.minecraft.entity.item.EntityPainting.EnumArt.Aztec2;
        case BOMB: return net.minecraft.entity.item.EntityPainting.EnumArt.Bomb;
        case PLANT: return net.minecraft.entity.item.EntityPainting.EnumArt.Plant;
        case WASTELAND: return net.minecraft.entity.item.EntityPainting.EnumArt.Wasteland;
        case POOL: return net.minecraft.entity.item.EntityPainting.EnumArt.Pool;
        case COURBET: return net.minecraft.entity.item.EntityPainting.EnumArt.Courbet;
        case SEA: return net.minecraft.entity.item.EntityPainting.EnumArt.Sea;
        case SUNSET: return net.minecraft.entity.item.EntityPainting.EnumArt.Sunset;
        case CREEBET: return net.minecraft.entity.item.EntityPainting.EnumArt.Creebet;
        case WANDERER: return net.minecraft.entity.item.EntityPainting.EnumArt.Wanderer;
        case GRAHAM: return net.minecraft.entity.item.EntityPainting.EnumArt.Graham;
        case MATCH: return net.minecraft.entity.item.EntityPainting.EnumArt.Match;
        case BUST: return net.minecraft.entity.item.EntityPainting.EnumArt.Bust;
        case STAGE: return net.minecraft.entity.item.EntityPainting.EnumArt.Stage;
        case VOID: return net.minecraft.entity.item.EntityPainting.EnumArt.Void;
        case SKULL_AND_ROSES: return net.minecraft.entity.item.EntityPainting.EnumArt.SkullAndRoses;
        case FIGHTERS: return net.minecraft.entity.item.EntityPainting.EnumArt.Fighters;
        case POINTER: return net.minecraft.entity.item.EntityPainting.EnumArt.Pointer;
        case PIGSCENE: return net.minecraft.entity.item.EntityPainting.EnumArt.Pigscene;
        case BURNINGSKULL: return net.minecraft.entity.item.EntityPainting.EnumArt.BurningSkull;
        case SKELETON: return net.minecraft.entity.item.EntityPainting.EnumArt.Skeleton;
        case DONKEYKONG: return net.minecraft.entity.item.EntityPainting.EnumArt.DonkeyKong;
        case WITHER: return net.minecraft.entity.item.EntityPainting.EnumArt.Wither;
        default:
            throw new AssertionError(art);
    }
}
 
开发者ID:UraniumMC,项目名称:Uranium,代码行数:33,代码来源:CraftArt.java

示例4: onLoad

import org.bukkit.Art; //导入依赖的package包/类
@Override
public void onLoad() {
    add(Art.KEBAB, "Kebab", "1x1_1", "Keb", "Food");
    add(Art.AZTEC, "Aztec", "1x1_2", "de_aztec", "Azt");
    add(Art.ALBAN, "Alban", "1x1_3", "Albanian", "Albania", "Alb", "Fez");
    add(Art.AZTEC2, "Aztec2", "1x1_4", "de_aztec2", "Azt2");
    add(Art.BOMB, "Bomb", "1x1_5", "Bombed", "Bo", "de_dust2");
    add(Art.PLANT, "Plant", "1x1_6", "Pl", "Plants", "Pots", "Pot");
    add(Art.WASTELAND, "Wasteland", "1x1_7", "Waste", "Was", "Rabbit");
    add(Art.POOL, "pool", "2x1_1", "Po", "Skinny Dip", "Swimming", "Swim");
    add(Art.COURBET, "Courbet", "2x1_2", "Cou", "Hikers", "Hiker", "Beards");
    add(Art.SEA, "Sea", "2x1_3", "Seaside");
    add(Art.SUNSET, "Sunset", "2x1_41", "sunset_dense", "Sun", "Mountains", "Mountain");
    add(Art.CREEBET, "Creebet", "2x1_5", "Seaside2", "Creeper", "Cre");
    add(Art.WANDERER, "Wanderer", "1x2_1", "Wander", "Wan", "Man");
    add(Art.GRAHAM, "Graham", "1x2_2", "Gra", "King");
    add(Art.MATCH, "Match", "2x2_1", "Mat", "Matches", "Lighter", "Fire");
    add(Art.BUST, "Bust", "2x2_2", "Bus", "Statue", "");
    add(Art.STAGE, "Stage", "2x2_3", "Sta", "Spider", "Scenery", "Scene");
    add(Art.VOID, "Void", "2x2_3", "Angel", "Pray");
    add(Art.SKULL_AND_ROSES, "SkullAndRoses", "2x2_4", "Moonlight", "SR", "SaR");
    add(Art.WITHER, "Wither", "2x2_5", "Withers", "Wit", "Wither Skulls", "WS");
    add(Art.FIGHTERS, "Fighters", "4x2_1", "Fight", "Karate", "Karate+");
    add(Art.POINTER, "Pointer", "4x4_1", "Point", "Hand", "Finger", "Karateka");
    add(Art.PIGSCENE, "Pigscene", "4x4_2", "RGB", "Cavas", "Pig");
    add(Art.BURNINGSKULL, "BurningSkull", "4x4_3", "Skull on Fire");
    add(Art.SKELETON, "Skeleton", "4x3_1", "Mortal Coil");
    add(Art.DONKEYKONG, "DonkeyKong", "4x3_2", "Donkey", "Kong");
}
 
开发者ID:GameBoxx,项目名称:GameBoxx,代码行数:30,代码来源:Paintings.java

示例5: setArt

import org.bukkit.Art; //导入依赖的package包/类
public boolean setArt(Art art, boolean force) {
    EntityPainting painting = this.getHandle();
    EnumArt oldArt = painting.art;
    painting.art = CraftArt.BukkitToNotch(art);
    painting.setDirection(painting.direction);
    if (!force && !painting.survives()) {
        // Revert painting since it doesn't fit
        painting.art = oldArt;
        painting.setDirection(painting.direction);
        return false;
    }
    this.update();
    return true;
}
 
开发者ID:OvercastNetwork,项目名称:CraftBukkit,代码行数:15,代码来源:CraftPainting.java

示例6: NotchToBukkit

import org.bukkit.Art; //导入依赖的package包/类
public static Art NotchToBukkit(EnumArt art) {
    switch (art) {
        case KEBAB: return Art.KEBAB;
        case AZTEC: return Art.AZTEC;
        case ALBAN: return Art.ALBAN;
        case AZTEC2: return Art.AZTEC2;
        case BOMB: return Art.BOMB;
        case PLANT: return Art.PLANT;
        case WASTELAND: return Art.WASTELAND;
        case POOL: return Art.POOL;
        case COURBET: return Art.COURBET;
        case SEA: return Art.SEA;
        case SUNSET: return Art.SUNSET;
        case CREEBET: return Art.CREEBET;
        case WANDERER: return Art.WANDERER;
        case GRAHAM: return Art.GRAHAM;
        case MATCH: return Art.MATCH;
        case BUST: return Art.BUST;
        case STAGE: return Art.STAGE;
        case VOID: return Art.VOID;
        case SKULL_AND_ROSES: return Art.SKULL_AND_ROSES;
        case FIGHTERS: return Art.FIGHTERS;
        case POINTER: return Art.POINTER;
        case PIGSCENE: return Art.PIGSCENE;
        case BURNINGSKULL: return Art.BURNINGSKULL;
        case SKELETON: return Art.SKELETON;
        case DONKEYKONG: return Art.DONKEYKONG;
        case WITHER: return Art.WITHER;
        default:
            throw new AssertionError(art);
    }
}
 
开发者ID:OvercastNetwork,项目名称:CraftBukkit,代码行数:33,代码来源:CraftArt.java

示例7: BukkitToNotch

import org.bukkit.Art; //导入依赖的package包/类
public static EnumArt BukkitToNotch(Art art) {
    switch (art) {
        case KEBAB: return EnumArt.KEBAB;
        case AZTEC: return EnumArt.AZTEC;
        case ALBAN: return EnumArt.ALBAN;
        case AZTEC2: return EnumArt.AZTEC2;
        case BOMB: return EnumArt.BOMB;
        case PLANT: return EnumArt.PLANT;
        case WASTELAND: return EnumArt.WASTELAND;
        case POOL: return EnumArt.POOL;
        case COURBET: return EnumArt.COURBET;
        case SEA: return EnumArt.SEA;
        case SUNSET: return EnumArt.SUNSET;
        case CREEBET: return EnumArt.CREEBET;
        case WANDERER: return EnumArt.WANDERER;
        case GRAHAM: return EnumArt.GRAHAM;
        case MATCH: return EnumArt.MATCH;
        case BUST: return EnumArt.BUST;
        case STAGE: return EnumArt.STAGE;
        case VOID: return EnumArt.VOID;
        case SKULL_AND_ROSES: return EnumArt.SKULL_AND_ROSES;
        case FIGHTERS: return EnumArt.FIGHTERS;
        case POINTER: return EnumArt.POINTER;
        case PIGSCENE: return EnumArt.PIGSCENE;
        case BURNINGSKULL: return EnumArt.BURNINGSKULL;
        case SKELETON: return EnumArt.SKELETON;
        case DONKEYKONG: return EnumArt.DONKEYKONG;
        case WITHER: return EnumArt.WITHER;
        default:
            throw new AssertionError(art);
    }
}
 
开发者ID:OvercastNetwork,项目名称:CraftBukkit,代码行数:33,代码来源:CraftArt.java

示例8: NotchToBukkit

import org.bukkit.Art; //导入依赖的package包/类
public static Art NotchToBukkit(EnumArt art) {
    switch (art) {
        case KEBAB: return Art.KEBAB;
        case AZTEC: return Art.AZTEC;
        case ALBAN: return Art.ALBAN;
        case AZTEC_2: return Art.AZTEC2;
        case BOMB: return Art.BOMB;
        case PLANT: return Art.PLANT;
        case WASTELAND: return Art.WASTELAND;
        case POOL: return Art.POOL;
        case COURBET: return Art.COURBET;
        case SEA: return Art.SEA;
        case SUNSET: return Art.SUNSET;
        case CREEBET: return Art.CREEBET;
        case WANDERER: return Art.WANDERER;
        case GRAHAM: return Art.GRAHAM;
        case MATCH: return Art.MATCH;
        case BUST: return Art.BUST;
        case STAGE: return Art.STAGE;
        case VOID: return Art.VOID;
        case SKULL_AND_ROSES: return Art.SKULL_AND_ROSES;
        case FIGHTERS: return Art.FIGHTERS;
        case POINTER: return Art.POINTER;
        case PIGSCENE: return Art.PIGSCENE;
        case BURNING_SKULL: return Art.BURNINGSKULL;
        case SKELETON: return Art.SKELETON;
        case DONKEY_KONG: return Art.DONKEYKONG;
        case WITHER: return Art.WITHER;
        default:
            throw new AssertionError(art);
    }
}
 
开发者ID:tgnmc,项目名称:Craftbukkit,代码行数:33,代码来源:CraftArt.java

示例9: BukkitToNotch

import org.bukkit.Art; //导入依赖的package包/类
public static EnumArt BukkitToNotch(Art art) {
    switch (art) {
        case KEBAB: return EnumArt.KEBAB;
        case AZTEC: return EnumArt.AZTEC;
        case ALBAN: return EnumArt.ALBAN;
        case AZTEC2: return EnumArt.AZTEC_2;
        case BOMB: return EnumArt.BOMB;
        case PLANT: return EnumArt.PLANT;
        case WASTELAND: return EnumArt.WASTELAND;
        case POOL: return EnumArt.POOL;
        case COURBET: return EnumArt.COURBET;
        case SEA: return EnumArt.SEA;
        case SUNSET: return EnumArt.SUNSET;
        case CREEBET: return EnumArt.CREEBET;
        case WANDERER: return EnumArt.WANDERER;
        case GRAHAM: return EnumArt.GRAHAM;
        case MATCH: return EnumArt.MATCH;
        case BUST: return EnumArt.BUST;
        case STAGE: return EnumArt.STAGE;
        case VOID: return EnumArt.VOID;
        case SKULL_AND_ROSES: return EnumArt.SKULL_AND_ROSES;
        case FIGHTERS: return EnumArt.FIGHTERS;
        case POINTER: return EnumArt.POINTER;
        case PIGSCENE: return EnumArt.PIGSCENE;
        case BURNINGSKULL: return EnumArt.BURNING_SKULL;
        case SKELETON: return EnumArt.SKELETON;
        case DONKEYKONG: return EnumArt.DONKEY_KONG;
        case WITHER: return EnumArt.WITHER;
        default:
            throw new AssertionError(art);
    }
}
 
开发者ID:tgnmc,项目名称:Craftbukkit,代码行数:33,代码来源:CraftArt.java

示例10: loadPainting

import org.bukkit.Art; //导入依赖的package包/类
public static EntityData loadPainting(Vector location, Art art, BlockFace direction) {
    EntityData data = new EntityData(EntityType.PAINTING);
    data.facing = direction;
    data.relativeLocation = location.clone();
    data.art = art;
    return data;
}
 
开发者ID:elBukkit,项目名称:MagicLib,代码行数:8,代码来源:EntityData.java


注:本文中的org.bukkit.Art类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。