public EntityPainting(World world, int i, int j, int k, int l) : this(world) { xPosition = i; yPosition = j; zPosition = k; var arraylist = new ArrayList(); EnumArt[] aenumart = EnumArt.values(); int i1 = aenumart.Length; for (int j1 = 0; j1 < i1; j1++) { EnumArt enumart = aenumart[j1]; art = enumart; func_179_a(l); if (onValidSurface()) { arraylist.add(enumart); } } if (arraylist.size() > 0) { art = (EnumArt) arraylist.get(rand.nextInt(arraylist.size())); } func_179_a(l); }
public override void readEntityFromNBT(NBTTagCompound nbttagcompound) { direction = nbttagcompound.getByte("Dir"); xPosition = nbttagcompound.getInteger("TileX"); yPosition = nbttagcompound.getInteger("TileY"); zPosition = nbttagcompound.getInteger("TileZ"); string s = nbttagcompound.getString("Motive"); EnumArt[] aenumart = EnumArt.values(); int i = aenumart.Length; for (int j = 0; j < i; j++) { EnumArt enumart = aenumart[j]; if (enumart.title.Equals(s)) { art = enumart; } } if (art == null) { art = EnumArt.Kebab; } func_179_a(direction); }
public EntityPainting(World world, int i, int j, int k, int l) : this(world) { xPosition = i; yPosition = j; zPosition = k; var arraylist = new ArrayList(); EnumArt[] aenumart = EnumArt.values(); int i1 = aenumart.Length; for (int j1 = 0; j1 < i1; j1++) { EnumArt enumart = aenumart[j1]; art = enumart; func_179_a(l); if (onValidSurface()) { arraylist.add(enumart); } } if (arraylist.size() > 0) { art = (EnumArt)arraylist.get(rand.nextInt(arraylist.size())); } func_179_a(l); }