2011-10-12 20:12:53 +02:00
|
|
|
package org.bukkit.craftbukkit;
|
|
|
|
|
2015-02-26 23:41:06 +01:00
|
|
|
import net.minecraft.server.EntityPainting.EnumArt;
|
2011-10-12 20:12:53 +02:00
|
|
|
import org.bukkit.Art;
|
|
|
|
|
|
|
|
// Safety class, will break if either side changes
|
|
|
|
public class CraftArt {
|
2012-11-01 09:06:47 +01:00
|
|
|
|
2011-10-12 20:12:53 +02:00
|
|
|
public static Art NotchToBukkit(EnumArt art) {
|
|
|
|
switch (art) {
|
|
|
|
case KEBAB: return Art.KEBAB;
|
|
|
|
case AZTEC: return Art.AZTEC;
|
|
|
|
case ALBAN: return Art.ALBAN;
|
2014-11-25 22:32:16 +01:00
|
|
|
case AZTEC_2: return Art.AZTEC2;
|
2011-10-12 20:12:53 +02:00
|
|
|
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;
|
2014-11-25 22:32:16 +01:00
|
|
|
case BURNING_SKULL: return Art.BURNINGSKULL;
|
2011-10-12 20:12:53 +02:00
|
|
|
case SKELETON: return Art.SKELETON;
|
2014-11-25 22:32:16 +01:00
|
|
|
case DONKEY_KONG: return Art.DONKEYKONG;
|
2012-11-01 09:06:47 +01:00
|
|
|
case WITHER: return Art.WITHER;
|
|
|
|
default:
|
|
|
|
throw new AssertionError(art);
|
2011-10-12 20:12:53 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static EnumArt BukkitToNotch(Art art) {
|
|
|
|
switch (art) {
|
|
|
|
case KEBAB: return EnumArt.KEBAB;
|
|
|
|
case AZTEC: return EnumArt.AZTEC;
|
|
|
|
case ALBAN: return EnumArt.ALBAN;
|
2014-11-25 22:32:16 +01:00
|
|
|
case AZTEC2: return EnumArt.AZTEC_2;
|
2011-10-12 20:12:53 +02:00
|
|
|
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;
|
2014-11-25 22:32:16 +01:00
|
|
|
case BURNINGSKULL: return EnumArt.BURNING_SKULL;
|
2011-10-12 20:12:53 +02:00
|
|
|
case SKELETON: return EnumArt.SKELETON;
|
2014-11-25 22:32:16 +01:00
|
|
|
case DONKEYKONG: return EnumArt.DONKEY_KONG;
|
2012-11-01 09:06:47 +01:00
|
|
|
case WITHER: return EnumArt.WITHER;
|
|
|
|
default:
|
|
|
|
throw new AssertionError(art);
|
2011-10-12 20:12:53 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|