package net.minecraft.server;
import com.google.common.collect.Sets;
import com.google.common.collect.UnmodifiableIterator;
import com.koloboke.collect.set.hash.HashObjSets;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Random;
import java.util.Set;
import javax.annotation.Nullable;
public class Block {
private static final MinecraftKey a = new MinecraftKey("air");
public static final RegistryBlocks<MinecraftKey, Block> REGISTRY = new RegistryBlocks(Block.a);
public static final RegistryBlockID<IBlockData> REGISTRY_ID = new RegistryBlockID();
public static final AxisAlignedBB j = new AxisAlignedBB(0.0D, 0.0D, 0.0D, 1.0D, 1.0D, 1.0D);
@Nullable
public static final AxisAlignedBB k = null;
private CreativeModeTab creativeTab;
protected boolean l;
protected int m;
protected boolean n;
protected int o;
protected boolean p;
protected float strength;
protected float durability;
protected boolean s;
protected boolean t;
protected boolean isTileEntity;
protected SoundEffectType stepSound;
public float w;
protected final Material material;
protected final MaterialMapColor y;
public float frictionFactor;
protected final BlockStateList blockStateList;
private IBlockData blockData;
private String name;
// Paper start
public co.aikar.timings.Timing timing;
public co.aikar.timings.Timing getTiming() {
if (timing == null) {
timing = co.aikar.timings.MinecraftTimings.getBlockTiming(this);
}
return timing;
}
// Paper end
public static int getId(Block block) {
return Block.REGISTRY.a(block); // CraftBukkit - decompile error
}
public static int getCombinedId(IBlockData iblockdata) {
Block block = iblockdata.getBlock();
return getId(block) + (block.toLegacyData(iblockdata) << 12);
}
public static Block getById(int i) {
return Block.REGISTRY.getId(i);
}
public static IBlockData getByCombinedId(int i) {
int j = i & 4095;
int k = i >> 12 & 15;
return getById(j).fromLegacyData(k);
}
public static Block asBlock(@Nullable Item item) {
return item instanceof ItemBlock ? ((ItemBlock) item).getBlock() : Blocks.AIR;
}
@Nullable
public static Block getByName(String s) {
MinecraftKey minecraftkey = new MinecraftKey(s);
if (Block.REGISTRY.d(minecraftkey)) {
return Block.REGISTRY.get(minecraftkey);
} else {
try {
return Block.REGISTRY.getId(Integer.parseInt(s));
} catch (NumberFormatException numberformatexception) {
return null;
}
}
}
@Deprecated
public boolean k(IBlockData iblockdata) {
return iblockdata.getMaterial().k() && iblockdata.h();
}
@Deprecated
public boolean l(IBlockData iblockdata) {
return this.l;
}
@Deprecated
public boolean a(IBlockData iblockdata, Entity entity) {
return true;
}
@Deprecated
public int m(IBlockData iblockdata) {
return this.m;
}
@Deprecated
public int o(IBlockData iblockdata) {
return this.o;
}
@Deprecated
public boolean p(IBlockData iblockdata) {
return this.p;
}
@Deprecated
public Material q(IBlockData iblockdata) {
return this.material;
}
@Deprecated
public MaterialMapColor r(IBlockData iblockdata) {
return this.y;
}
@Deprecated
public IBlockData fromLegacyData(int i) {
return this.getBlockData();
}
public int toLegacyData(IBlockData iblockdata) {
if (iblockdata.t().isEmpty()) {
return 0;
} else {
throw new IllegalArgumentException("Don\'t know how to convert " + iblockdata + " back into data...");
}
}
@Deprecated
public IBlockData updateState(IBlockData iblockdata, IBlockAccess iblockaccess, BlockPosition blockposition) {
return iblockdata;
}
@Deprecated
public IBlockData a(IBlockData iblockdata, EnumBlockRotation enumblockrotation) {
return iblockdata;
}
@Deprecated
public IBlockData a(IBlockData iblockdata, EnumBlockMirror enumblockmirror) {
return iblockdata;
}
public Block(Material material, MaterialMapColor materialmapcolor) {
this.s = true;
this.stepSound = SoundEffectType.d;
this.w = 1.0F;
this.frictionFactor = 0.6F;
this.material = material;
this.y = materialmapcolor;
this.blockStateList = this.getStateList();
this.y(this.blockStateList.getBlockData());
this.l = this.getBlockData().q();
this.m = this.l ? 255 : 0;
this.n = !material.blocksLight();
}
protected Block(Material material) {
this(material, material.r());
}
protected Block a(SoundEffectType soundeffecttype) {
this.stepSound = soundeffecttype;
return this;
}
protected Block d(int i) {
this.m = i;
return this;
}
protected Block a(float f) {
this.o = (int) (15.0F * f);
return this;
}
protected Block b(float f) {
this.durability = f * 3.0F;
return this;
}
@Deprecated
public boolean s(IBlockData iblockdata) {
return iblockdata.getMaterial().isSolid() && iblockdata.h();
}
@Deprecated
public boolean isOccluding(IBlockData iblockdata) {
return iblockdata.getMaterial().k() && iblockdata.h() && !iblockdata.n();
}
@Deprecated
public boolean u(IBlockData iblockdata) {
return this.material.isSolid() && this.getBlockData().h();
}
@Deprecated
public boolean c(IBlockData iblockdata) {
return true;
}
public boolean b(IBlockAccess iblockaccess, BlockPosition blockposition) {
return !this.material.isSolid();
}
@Deprecated
public EnumRenderType a(IBlockData iblockdata) {
return EnumRenderType.MODEL;
}
public boolean a(IBlockAccess iblockaccess, BlockPosition blockposition) {
return false;
}
protected Block c(float f) {
this.strength = f;
if (this.durability < f * 5.0F) {
this.durability = f * 5.0F;
}
return this;
}
protected Block j() {
this.c(-1.0F);
return this;
}
@Deprecated
public float a(IBlockData iblockdata, World world, BlockPosition blockposition) {
return this.strength;
}
protected Block a(boolean flag) {
this.t = flag;
return this;
}
public boolean isTicking() {
return this.t;
}
public boolean isTileEntity() {
return this.isTileEntity;
}
@Deprecated
public AxisAlignedBB b(IBlockData iblockdata, IBlockAccess iblockaccess, BlockPosition blockposition) {
return Block.j;
}
public boolean a(IBlockAccess iblockaccess, BlockPosition blockposition, EnumDirection enumdirection) {
return iblockaccess.getType(blockposition).getMaterial().isBuildable();
}
@Deprecated
public void a(IBlockData iblockdata, World world, BlockPosition blockposition, AxisAlignedBB axisalignedbb, List<AxisAlignedBB> list, @Nullable Entity entity, boolean flag) {
a(blockposition, axisalignedbb, list, iblockdata.c(world, blockposition));
}
protected static void a(BlockPosition blockposition, AxisAlignedBB axisalignedbb, List<AxisAlignedBB> list, @Nullable AxisAlignedBB axisalignedbb1) {
if (axisalignedbb1 != Block.k) {
AxisAlignedBB axisalignedbb2 = axisalignedbb1.a(blockposition);
if (axisalignedbb.c(axisalignedbb2)) {
list.add(axisalignedbb2);
}
}
}
@Deprecated
@Nullable
public AxisAlignedBB a(IBlockData iblockdata, IBlockAccess iblockaccess, BlockPosition blockposition) {
return iblockdata.d(iblockaccess, blockposition);
}
@Deprecated
public boolean b(IBlockData iblockdata) {
return true;
}
public boolean a(IBlockData iblockdata, boolean flag) {
return this.m();
}
public boolean m() {
return true;
}
public void a(World world, BlockPosition blockposition, IBlockData iblockdata, Random random) {
this.b(world, blockposition, iblockdata, random);
}
public void b(World world, BlockPosition blockposition, IBlockData iblockdata, Random random) {}
public void postBreak(World world, BlockPosition blockposition, IBlockData iblockdata) {}
@Deprecated
public void a(IBlockData iblockdata, World world, BlockPosition blockposition, Block block, BlockPosition blockposition1) {}
public int a(World world) {
return 10;
}
public void onPlace(World world, BlockPosition blockposition, IBlockData iblockdata) {
org.spigotmc.AsyncCatcher.catchOp( "block onPlace"); // Spigot
}
public void remove(World world, BlockPosition blockposition, IBlockData iblockdata) {
org.spigotmc.AsyncCatcher.catchOp( "block remove"); // Spigot
}
public int a(Random random) {
return 1;
}
public Item getDropType(IBlockData iblockdata, Random random, int i) {
return Item.getItemOf(this);
}
@Deprecated
public float getDamage(IBlockData iblockdata, EntityHuman entityhuman, World world, BlockPosition blockposition) {
float f = iblockdata.b(world, blockposition);
return f < 0.0F ? 0.0F : (!entityhuman.hasBlock(iblockdata) ? entityhuman.a(iblockdata) / f / 100.0F : entityhuman.a(iblockdata) / f / 30.0F);
}
public final void b(World world, BlockPosition blockposition, IBlockData iblockdata, int i) {
this.dropNaturally(world, blockposition, iblockdata, 1.0F, i);
}
public void dropNaturally(World world, BlockPosition blockposition, IBlockData iblockdata, float f, int i) {
if (!world.isClientSide) {
int j = this.getDropCount(i, world.random);
for (int k = 0; k < j; ++k) {
// CraftBukkit - <= to < to allow for plugins to completely disable block drops from explosions
if (world.random.nextFloat() < f) {
Item item = this.getDropType(iblockdata, world.random, i);
if (item != Items.a) {
a(world, blockposition, new ItemStack(item, 1, this.getDropData(iblockdata)));
}
}
}
}
}
public static void a(World world, BlockPosition blockposition, ItemStack itemstack) {
if (!world.isClientSide && !itemstack.isEmpty() && world.getGameRules().getBoolean("doTileDrops")) {
float f = 0.5F;
double d0 = world.random.nextFloat() * 0.5F + 0.25D;
double d1 = world.random.nextFloat() * 0.5F + 0.25D;
double d2 = world.random.nextFloat() * 0.5F + 0.25D;
EntityItem entityitem = new EntityItem(world, blockposition.getX() + d0, blockposition.getY() + d1, blockposition.getZ() + d2, itemstack);
entityitem.q();
world.addEntity(entityitem);
}
}
protected void dropExperience(World world, BlockPosition blockposition, int i) {
if (!world.isClientSide && world.getGameRules().getBoolean("doTileDrops")) {
while (i > 0) {
int j = EntityExperienceOrb.getOrbValue(i);
i -= j;
world.addEntity(new EntityExperienceOrb(world, blockposition.getX() + 0.5D, blockposition.getY() + 0.5D, blockposition.getZ() + 0.5D, j));
}
}
}
public int getDropData(IBlockData iblockdata) {
return 0;
}
public float a(Entity entity) {
return this.durability / 5.0F;
}
@Deprecated
@Nullable
public MovingObjectPosition a(IBlockData iblockdata, World world, BlockPosition blockposition, Vec3D vec3d, Vec3D vec3d1) {
return this.a(blockposition, vec3d, vec3d1, iblockdata.d(world, blockposition));
}
@Nullable
protected MovingObjectPosition a(BlockPosition blockposition, Vec3D vec3d, Vec3D vec3d1, AxisAlignedBB axisalignedbb) {
Vec3D vec3d2 = vec3d.a(blockposition.getX(), blockposition.getY(), blockposition.getZ());
Vec3D vec3d3 = vec3d1.a(blockposition.getX(), blockposition.getY(), blockposition.getZ());
MovingObjectPosition movingobjectposition = axisalignedbb.b(vec3d2, vec3d3);
return movingobjectposition == null ? null : new MovingObjectPosition(movingobjectposition.pos.add(blockposition.getX(), blockposition.getY(), blockposition.getZ()), movingobjectposition.direction, blockposition);
}
public void wasExploded(World world, BlockPosition blockposition, Explosion explosion) {}
public boolean canPlace(World world, BlockPosition blockposition, EnumDirection enumdirection) {
return this.canPlace(world, blockposition);
}
public boolean canPlace(World world, BlockPosition blockposition) {
return world.getType(blockposition).getBlock().material.isReplaceable();
}
public boolean interact(World world, BlockPosition blockposition, IBlockData iblockdata, EntityHuman entityhuman, EnumHand enumhand, EnumDirection enumdirection, float f, float f1, float f2) {
return false;
}
public void stepOn(World world, BlockPosition blockposition, Entity entity) {}
public IBlockData getPlacedState(World world, BlockPosition blockposition, EnumDirection enumdirection, float f, float f1, float f2, int i, EntityLiving entityliving) {
return this.fromLegacyData(i);
}
public void attack(World world, BlockPosition blockposition, EntityHuman entityhuman) {}
public Vec3D a(World world, BlockPosition blockposition, Entity entity, Vec3D vec3d) {
return vec3d;
}
@Deprecated
public int b(IBlockData iblockdata, IBlockAccess iblockaccess, BlockPosition blockposition, EnumDirection enumdirection) {
return 0;
}
@Deprecated
public boolean isPowerSource(IBlockData iblockdata) {
return false;
}
public void a(World world, BlockPosition blockposition, IBlockData iblockdata, Entity entity) {}
@Deprecated
public int c(IBlockData iblockdata, IBlockAccess iblockaccess, BlockPosition blockposition, EnumDirection enumdirection) {
return 0;
}
public void a(World world, EntityHuman entityhuman, BlockPosition blockposition, IBlockData iblockdata, @Nullable TileEntity tileentity, ItemStack itemstack) {
entityhuman.b(StatisticList.a(this));
entityhuman.applyExhaustion(0.005F);
if (this.n() && EnchantmentManager.getEnchantmentLevel(Enchantments.SILK_TOUCH, itemstack) > 0) {
ItemStack itemstack1 = this.w(iblockdata);
a(world, blockposition, itemstack1);
} else {
int i = EnchantmentManager.getEnchantmentLevel(Enchantments.LOOT_BONUS_BLOCKS, itemstack);
this.b(world, blockposition, iblockdata, i);
}
}
protected boolean n() {
return this.getBlockData().h() && !this.isTileEntity;
}
protected ItemStack w(IBlockData iblockdata) {
Item item = Item.getItemOf(this);
int i = 0;
if (item.l()) {
i = this.toLegacyData(iblockdata);
}
return new ItemStack(item, 1, i);
}
public int getDropCount(int i, Random random) {
return this.a(random);
}
public void postPlace(World world, BlockPosition blockposition, IBlockData iblockdata, EntityLiving entityliving, ItemStack itemstack) {}
public boolean d() {
return !this.material.isBuildable() && !this.material.isLiquid();
}
public Block c(String s) {
this.name = s;
return this;
}
public String getName() {
return LocaleI18n.get(this.a() + ".name");
}
public String a() {
return "tile." + this.name;
}
@Deprecated
public boolean a(IBlockData iblockdata, World world, BlockPosition blockposition, int i, int j) {
return false;
}
public boolean o() {
return this.s;
}
protected Block p() {
this.s = false;
return this;
}
@Deprecated
public EnumPistonReaction h(IBlockData iblockdata) {
return this.material.getPushReaction();
}
public void fallOn(World world, BlockPosition blockposition, Entity entity, float f) {
entity.e(f, 1.0F);
}
public void a(World world, Entity entity) {
entity.motY = 0.0D;
}
public ItemStack a(World world, BlockPosition blockposition, IBlockData iblockdata) {
return new ItemStack(Item.getItemOf(this), 1, this.getDropData(iblockdata));
}
public Block a(CreativeModeTab creativemodetab) {
this.creativeTab = creativemodetab;
return this;
}
public void a(World world, BlockPosition blockposition, IBlockData iblockdata, EntityHuman entityhuman) {}
public void h(World world, BlockPosition blockposition) {}
public boolean r() {
return true;
}
public boolean a(Explosion explosion) {
return true;
}
public boolean b(Block block) {
return this == block;
}
public static boolean a(Block block, Block block1) {
return block != null && block1 != null ? (block == block1 ? true : block.b(block1)) : false;
}
@Deprecated
public boolean isComplexRedstone(IBlockData iblockdata) {
return false;
}
@Deprecated
public int c(IBlockData iblockdata, World world, BlockPosition blockposition) {
return 0;
}
protected BlockStateList getStateList() {
return new BlockStateList(this, new IBlockState[0]);
}
public BlockStateList s() {
return this.blockStateList;
}
protected final void y(IBlockData iblockdata) {
this.blockData = iblockdata;
}
public final IBlockData getBlockData() {
return this.blockData;
}
public Block.EnumRandomOffset u() {
return Block.EnumRandomOffset.NONE;
}
@Deprecated
public Vec3D e(IBlockData iblockdata, IBlockAccess iblockaccess, BlockPosition blockposition) {
Block.EnumRandomOffset block_enumrandomoffset = this.u();
if (block_enumrandomoffset == Block.EnumRandomOffset.NONE) {
return Vec3D.a;
} else {
long i = MathHelper.c(blockposition.getX(), 0, blockposition.getZ());
return new Vec3D(((i >> 16 & 15L) / 15.0F - 0.5D) * 0.5D, block_enumrandomoffset == Block.EnumRandomOffset.XYZ ? ((i >> 20 & 15L) / 15.0F - 1.0D) * 0.2D : 0.0D, ((i >> 24 & 15L) / 15.0F - 0.5D) * 0.5D);
}
}
public SoundEffectType getStepSound() {
return this.stepSound;
}
@Override
public String toString() {
return "Block{" + Block.REGISTRY.b(this) + "}";
}
public static void w() {
a(0, Block.a, (new BlockAir()).c("air"));
a(1, "stone", (new BlockStone()).c(1.5F).b(10.0F).a(SoundEffectType.d).c("stone"));
a(2, "grass", (new BlockGrass()).c(0.6F).a(SoundEffectType.c).c("grass"));
a(3, "dirt", (new BlockDirt()).c(0.5F).a(SoundEffectType.b).c("dirt"));
Block block = (new Block(Material.STONE)).c(2.0F).b(10.0F).a(SoundEffectType.d).c("stonebrick").a(CreativeModeTab.b);
a(4, "cobblestone", block);
Block block1 = (new BlockWood()).c(2.0F).b(5.0F).a(SoundEffectType.a).c("wood");
a(5, "planks", block1);
a(6, "sapling", (new BlockSapling()).c(0.0F).a(SoundEffectType.c).c("sapling"));
a(7, "bedrock", (new BlockNoDrop(Material.STONE)).j().b(6000000.0F).a(SoundEffectType.d).c("bedrock").p().a(CreativeModeTab.b));
a(8, "flowing_water", (new BlockFlowing(Material.WATER)).c(100.0F).d(3).c("water").p());
a(9, "water", (new BlockStationary(Material.WATER)).c(100.0F).d(3).c("water").p());
a(10, "flowing_lava", (new BlockFlowing(Material.LAVA)).c(100.0F).a(1.0F).c("lava").p());
a(11, "lava", (new BlockStationary(Material.LAVA)).c(100.0F).a(1.0F).c("lava").p());
a(12, "sand", (new BlockSand()).c(0.5F).a(SoundEffectType.h).c("sand"));
a(13, "gravel", (new BlockGravel()).c(0.6F).a(SoundEffectType.b).c("gravel"));
a(14, "gold_ore", (new BlockOre()).c(3.0F).b(5.0F).a(SoundEffectType.d).c("oreGold"));
a(15, "iron_ore", (new BlockOre()).c(3.0F).b(5.0F).a(SoundEffectType.d).c("oreIron"));
a(16, "coal_ore", (new BlockOre()).c(3.0F).b(5.0F).a(SoundEffectType.d).c("oreCoal"));
a(17, "log", (new BlockLog1()).c("log"));
a(18, "leaves", (new BlockLeaves1()).c("leaves"));
a(19, "sponge", (new BlockSponge()).c(0.6F).a(SoundEffectType.c).c("sponge"));
a(20, "glass", (new BlockGlass(Material.SHATTERABLE, false)).c(0.3F).a(SoundEffectType.f).c("glass"));
a(21, "lapis_ore", (new BlockOre()).c(3.0F).b(5.0F).a(SoundEffectType.d).c("oreLapis"));
a(22, "lapis_block", (new Block(Material.ORE, MaterialMapColor.H)).c(3.0F).b(5.0F).a(SoundEffectType.d).c("blockLapis").a(CreativeModeTab.b));
a(23, "dispenser", (new BlockDispenser()).c(3.5F).a(SoundEffectType.d).c("dispenser"));
Block block2 = (new BlockSandStone()).a(SoundEffectType.d).c(0.8F).c("sandStone");
a(24, "sandstone", block2);
a(25, "noteblock", (new BlockNote()).a(SoundEffectType.a).c(0.8F).c("musicBlock"));
a(26, "bed", (new BlockBed()).a(SoundEffectType.a).c(0.2F).c("bed").p());
a(27, "golden_rail", (new BlockPoweredRail()).c(0.7F).a(SoundEffectType.e).c("goldenRail"));
a(28, "detector_rail", (new BlockMinecartDetector()).c(0.7F).a(SoundEffectType.e).c("detectorRail"));
a(29, "sticky_piston", (new BlockPiston(true)).c("pistonStickyBase"));
a(30, "web", (new BlockWeb()).d(1).c(4.0F).c("web"));
a(31, "tallgrass", (new BlockLongGrass()).c(0.0F).a(SoundEffectType.c).c("tallgrass"));
a(32, "deadbush", (new BlockDeadBush()).c(0.0F).a(SoundEffectType.c).c("deadbush"));
a(33, "piston", (new BlockPiston(false)).c("pistonBase"));
a(34, "piston_head", (new BlockPistonExtension()).c("pistonBase"));
a(35, "wool", (new BlockCloth(Material.CLOTH)).c(0.8F).a(SoundEffectType.g).c("cloth"));
a(36, "piston_extension", new BlockPistonMoving());
a(37, "yellow_flower", (new BlockYellowFlowers()).c(0.0F).a(SoundEffectType.c).c("flower1"));
a(38, "red_flower", (new BlockRedFlowers()).c(0.0F).a(SoundEffectType.c).c("flower2"));
Block block3 = (new BlockMushroom()).c(0.0F).a(SoundEffectType.c).a(0.125F).c("mushroom");
a(39, "brown_mushroom", block3);
Block block4 = (new BlockMushroom()).c(0.0F).a(SoundEffectType.c).c("mushroom");
a(40, "red_mushroom", block4);
a(41, "gold_block", (new Block(Material.ORE, MaterialMapColor.F)).c(3.0F).b(10.0F).a(SoundEffectType.e).c("blockGold").a(CreativeModeTab.b));
a(42, "iron_block", (new Block(Material.ORE, MaterialMapColor.h)).c(5.0F).b(10.0F).a(SoundEffectType.e).c("blockIron").a(CreativeModeTab.b));
a(43, "double_stone_slab", (new BlockDoubleStep()).c(2.0F).b(10.0F).a(SoundEffectType.d).c("stoneSlab"));
a(44, "stone_slab", (new BlockStep()).c(2.0F).b(10.0F).a(SoundEffectType.d).c("stoneSlab"));
Block block5 = (new Block(Material.STONE, MaterialMapColor.D)).c(2.0F).b(10.0F).a(SoundEffectType.d).c("brick").a(CreativeModeTab.b);
a(45, "brick_block", block5);
a(46, "tnt", (new BlockTNT()).c(0.0F).a(SoundEffectType.c).c("tnt"));
a(47, "bookshelf", (new BlockBookshelf()).c(1.5F).a(SoundEffectType.a).c("bookshelf"));
a(48, "mossy_cobblestone", (new Block(Material.STONE)).c(2.0F).b(10.0F).a(SoundEffectType.d).c("stoneMoss").a(CreativeModeTab.b));
a(49, "obsidian", (new BlockObsidian()).c(50.0F).b(2000.0F).a(SoundEffectType.d).c("obsidian"));
a(50, "torch", (new BlockTorch()).c(0.0F).a(0.9375F).a(SoundEffectType.a).c("torch"));
a(51, "fire", (new BlockFire()).c(0.0F).a(1.0F).a(SoundEffectType.g).c("fire").p());
a(52, "mob_spawner", (new BlockMobSpawner()).c(5.0F).a(SoundEffectType.e).c("mobSpawner").p());
a(53, "oak_stairs", (new BlockStairs(block1.getBlockData().set(BlockWood.VARIANT, BlockWood.EnumLogVariant.OAK))).c("stairsWood"));
a(54, "chest", (new BlockChest(BlockChest.Type.BASIC)).c(2.5F).a(SoundEffectType.a).c("chest"));
a(55, "redstone_wire", (new BlockRedstoneWire()).c(0.0F).a(SoundEffectType.d).c("redstoneDust").p());
a(56, "diamond_ore", (new BlockOre()).c(3.0F).b(5.0F).a(SoundEffectType.d).c("oreDiamond"));
a(57, "diamond_block", (new Block(Material.ORE, MaterialMapColor.G)).c(5.0F).b(10.0F).a(SoundEffectType.e).c("blockDiamond").a(CreativeModeTab.b));
a(58, "crafting_table", (new BlockWorkbench()).c(2.5F).a(SoundEffectType.a).c("workbench"));
a(59, "wheat", (new BlockCrops()).c("crops"));
Block block6 = (new BlockSoil()).c(0.6F).a(SoundEffectType.b).c("farmland");
a(60, "farmland", block6);
a(61, "furnace", (new BlockFurnace(false)).c(3.5F).a(SoundEffectType.d).c("furnace").a(CreativeModeTab.c));
a(62, "lit_furnace", (new BlockFurnace(true)).c(3.5F).a(SoundEffectType.d).a(0.875F).c("furnace"));
a(63, "standing_sign", (new BlockFloorSign()).c(1.0F).a(SoundEffectType.a).c("sign").p());
a(64, "wooden_door", (new BlockDoor(Material.WOOD)).c(3.0F).a(SoundEffectType.a).c("doorOak").p());
a(65, "ladder", (new BlockLadder()).c(0.4F).a(SoundEffectType.j).c("ladder"));
a(66, "rail", (new BlockMinecartTrack()).c(0.7F).a(SoundEffectType.e).c("rail"));
a(67, "stone_stairs", (new BlockStairs(block.getBlockData())).c("stairsStone"));
a(68, "wall_sign", (new BlockWallSign()).c(1.0F).a(SoundEffectType.a).c("sign").p());
a(69, "lever", (new BlockLever()).c(0.5F).a(SoundEffectType.a).c("lever"));
a(70, "stone_pressure_plate", (new BlockPressurePlateBinary(Material.STONE, BlockPressurePlateBinary.EnumMobType.MOBS)).c(0.5F).a(SoundEffectType.d).c("pressurePlateStone"));
a(71, "iron_door", (new BlockDoor(Material.ORE)).c(5.0F).a(SoundEffectType.e).c("doorIron").p());
a(72, "wooden_pressure_plate", (new BlockPressurePlateBinary(Material.WOOD, BlockPressurePlateBinary.EnumMobType.EVERYTHING)).c(0.5F).a(SoundEffectType.a).c("pressurePlateWood"));
a(73, "redstone_ore", (new BlockRedstoneOre(false)).c(3.0F).b(5.0F).a(SoundEffectType.d).c("oreRedstone").a(CreativeModeTab.b));
a(74, "lit_redstone_ore", (new BlockRedstoneOre(true)).a(0.625F).c(3.0F).b(5.0F).a(SoundEffectType.d).c("oreRedstone"));
a(75, "unlit_redstone_torch", (new BlockRedstoneTorch(false)).c(0.0F).a(SoundEffectType.a).c("notGate"));
a(76, "redstone_torch", (new BlockRedstoneTorch(true)).c(0.0F).a(0.5F).a(SoundEffectType.a).c("notGate").a(CreativeModeTab.d));
a(77, "stone_button", (new BlockStoneButton()).c(0.5F).a(SoundEffectType.d).c("button"));
a(78, "snow_layer", (new BlockSnow()).c(0.1F).a(SoundEffectType.i).c("snow").d(0));
a(79, "ice", (new BlockIce()).c(0.5F).d(3).a(SoundEffectType.f).c("ice"));
a(80, "snow", (new BlockSnowBlock()).c(0.2F).a(SoundEffectType.i).c("snow"));
a(81, "cactus", (new BlockCactus()).c(0.4F).a(SoundEffectType.g).c("cactus"));
a(82, "clay", (new BlockClay()).c(0.6F).a(SoundEffectType.b).c("clay"));
a(83, "reeds", (new BlockReed()).c(0.0F).a(SoundEffectType.c).c("reeds").p());
a(84, "jukebox", (new BlockJukeBox()).c(2.0F).b(10.0F).a(SoundEffectType.d).c("jukebox"));
a(85, "fence", (new BlockFence(Material.WOOD, BlockWood.EnumLogVariant.OAK.c())).c(2.0F).b(5.0F).a(SoundEffectType.a).c("fence"));
Block block7 = (new BlockPumpkin()).c(1.0F).a(SoundEffectType.a).c("pumpkin");
a(86, "pumpkin", block7);
a(87, "netherrack", (new BlockBloodStone()).c(0.4F).a(SoundEffectType.d).c("hellrock"));
a(88, "soul_sand", (new BlockSlowSand()).c(0.5F).a(SoundEffectType.h).c("hellsand"));
a(89, "glowstone", (new BlockLightStone(Material.SHATTERABLE)).c(0.3F).a(SoundEffectType.f).a(1.0F).c("lightgem"));
a(90, "portal", (new BlockPortal()).c(-1.0F).a(SoundEffectType.f).a(0.75F).c("portal"));
a(91, "lit_pumpkin", (new BlockPumpkin()).c(1.0F).a(SoundEffectType.a).a(1.0F).c("litpumpkin"));
a(92, "cake", (new BlockCake()).c(0.5F).a(SoundEffectType.g).c("cake").p());
a(93, "unpowered_repeater", (new BlockRepeater(false)).c(0.0F).a(SoundEffectType.a).c("diode").p());
a(94, "powered_repeater", (new BlockRepeater(true)).c(0.0F).a(SoundEffectType.a).c("diode").p());
a(95, "stained_glass", (new BlockStainedGlass(Material.SHATTERABLE)).c(0.3F).a(SoundEffectType.f).c("stainedGlass"));
a(96, "trapdoor", (new BlockTrapdoor(Material.WOOD)).c(3.0F).a(SoundEffectType.a).c("trapdoor").p());
a(97, "monster_egg", (new BlockMonsterEggs()).c(0.75F).c("monsterStoneEgg"));
Block block8 = (new BlockSmoothBrick()).c(1.5F).b(10.0F).a(SoundEffectType.d).c("stonebricksmooth");
a(98, "stonebrick", block8);
a(99, "brown_mushroom_block", (new BlockHugeMushroom(Material.WOOD, MaterialMapColor.l, block3)).c(0.2F).a(SoundEffectType.a).c("mushroom"));
a(100, "red_mushroom_block", (new BlockHugeMushroom(Material.WOOD, MaterialMapColor.D, block4)).c(0.2F).a(SoundEffectType.a).c("mushroom"));
a(101, "iron_bars", (new BlockThin(Material.ORE, true)).c(5.0F).b(10.0F).a(SoundEffectType.e).c("fenceIron"));
a(102, "glass_pane", (new BlockThin(Material.SHATTERABLE, false)).c(0.3F).a(SoundEffectType.f).c("thinGlass"));
Block block9 = (new BlockMelon()).c(1.0F).a(SoundEffectType.a).c("melon");
a(103, "melon_block", block9);
a(104, "pumpkin_stem", (new BlockStem(block7)).c(0.0F).a(SoundEffectType.a).c("pumpkinStem"));
a(105, "melon_stem", (new BlockStem(block9)).c(0.0F).a(SoundEffectType.a).c("pumpkinStem"));
a(106, "vine", (new BlockVine()).c(0.2F).a(SoundEffectType.c).c("vine"));
a(107, "fence_gate", (new BlockFenceGate(BlockWood.EnumLogVariant.OAK)).c(2.0F).b(5.0F).a(SoundEffectType.a).c("fenceGate"));
a(108, "brick_stairs", (new BlockStairs(block5.getBlockData())).c("stairsBrick"));
a(109, "stone_brick_stairs", (new BlockStairs(block8.getBlockData().set(BlockSmoothBrick.VARIANT, BlockSmoothBrick.EnumStonebrickType.DEFAULT))).c("stairsStoneBrickSmooth"));
a(110, "mycelium", (new BlockMycel()).c(0.6F).a(SoundEffectType.c).c("mycel"));
a(111, "waterlily", (new BlockWaterLily()).c(0.0F).a(SoundEffectType.c).c("waterlily"));
Block block10 = (new BlockNetherbrick()).c(2.0F).b(10.0F).a(SoundEffectType.d).c("netherBrick").a(CreativeModeTab.b);
a(112, "nether_brick", block10);
a(113, "nether_brick_fence", (new BlockFence(Material.STONE, MaterialMapColor.K)).c(2.0F).b(10.0F).a(SoundEffectType.d).c("netherFence"));
a(114, "nether_brick_stairs", (new BlockStairs(block10.getBlockData())).c("stairsNetherBrick"));
a(115, "nether_wart", (new BlockNetherWart()).c("netherStalk"));
a(116, "enchanting_table", (new BlockEnchantmentTable()).c(5.0F).b(2000.0F).c("enchantmentTable"));
a(117, "brewing_stand", (new BlockBrewingStand()).c(0.5F).a(0.125F).c("brewingStand"));
a(118, "cauldron", (new BlockCauldron()).c(2.0F).c("cauldron"));
a(119, "end_portal", (new BlockEnderPortal(Material.PORTAL)).c(-1.0F).b(6000000.0F));
a(120, "end_portal_frame", (new BlockEnderPortalFrame()).a(SoundEffectType.f).a(0.125F).c(-1.0F).c("endPortalFrame").b(6000000.0F).a(CreativeModeTab.c));
a(121, "end_stone", (new Block(Material.STONE, MaterialMapColor.d)).c(3.0F).b(15.0F).a(SoundEffectType.d).c("whiteStone").a(CreativeModeTab.b));
a(122, "dragon_egg", (new BlockDragonEgg()).c(3.0F).b(15.0F).a(SoundEffectType.d).a(0.125F).c("dragonEgg"));
a(123, "redstone_lamp", (new BlockRedstoneLamp(false)).c(0.3F).a(SoundEffectType.f).c("redstoneLight").a(CreativeModeTab.d));
a(124, "lit_redstone_lamp", (new BlockRedstoneLamp(true)).c(0.3F).a(SoundEffectType.f).c("redstoneLight"));
a(125, "double_wooden_slab", (new BlockDoubleWoodStep()).c(2.0F).b(5.0F).a(SoundEffectType.a).c("woodSlab"));
a(126, "wooden_slab", (new BlockWoodStep()).c(2.0F).b(5.0F).a(SoundEffectType.a).c("woodSlab"));
a(127, "cocoa", (new BlockCocoa()).c(0.2F).b(5.0F).a(SoundEffectType.a).c("cocoa"));
a(128, "sandstone_stairs", (new BlockStairs(block2.getBlockData().set(BlockSandStone.TYPE, BlockSandStone.EnumSandstoneVariant.SMOOTH))).c("stairsSandStone"));
a(129, "emerald_ore", (new BlockOre()).c(3.0F).b(5.0F).a(SoundEffectType.d).c("oreEmerald"));
a(130, "ender_chest", (new BlockEnderChest()).c(22.5F).b(1000.0F).a(SoundEffectType.d).c("enderChest").a(0.5F));
a(131, "tripwire_hook", (new BlockTripwireHook()).c("tripWireSource"));
a(132, "tripwire", (new BlockTripwire()).c("tripWire"));
a(133, "emerald_block", (new Block(Material.ORE, MaterialMapColor.I)).c(5.0F).b(10.0F).a(SoundEffectType.e).c("blockEmerald").a(CreativeModeTab.b));
a(134, "spruce_stairs", (new BlockStairs(block1.getBlockData().set(BlockWood.VARIANT, BlockWood.EnumLogVariant.SPRUCE))).c("stairsWoodSpruce"));
a(135, "birch_stairs", (new BlockStairs(block1.getBlockData().set(BlockWood.VARIANT, BlockWood.EnumLogVariant.BIRCH))).c("stairsWoodBirch"));
a(136, "jungle_stairs", (new BlockStairs(block1.getBlockData().set(BlockWood.VARIANT, BlockWood.EnumLogVariant.JUNGLE))).c("stairsWoodJungle"));
a(137, "command_block", (new BlockCommand(MaterialMapColor.B)).j().b(6000000.0F).c("commandBlock"));
a(138, "beacon", (new BlockBeacon()).c("beacon").a(1.0F));
a(139, "cobblestone_wall", (new BlockCobbleWall(block)).c("cobbleWall"));
a(140, "flower_pot", (new BlockFlowerPot()).c(0.0F).a(SoundEffectType.d).c("flowerPot"));
a(141, "carrots", (new BlockCarrots()).c("carrots"));
a(142, "potatoes", (new BlockPotatoes()).c("potatoes"));
a(143, "wooden_button", (new BlockWoodButton()).c(0.5F).a(SoundEffectType.a).c("button"));
a(144, "skull", (new BlockSkull()).c(1.0F).a(SoundEffectType.d).c("skull"));
a(145, "anvil", (new BlockAnvil()).c(5.0F).a(SoundEffectType.k).b(2000.0F).c("anvil"));
a(146, "trapped_chest", (new BlockChest(BlockChest.Type.TRAP)).c(2.5F).a(SoundEffectType.a).c("chestTrap"));
a(147, "light_weighted_pressure_plate", (new BlockPressurePlateWeighted(Material.ORE, 15, MaterialMapColor.F)).c(0.5F).a(SoundEffectType.a).c("weightedPlate_light"));
a(148, "heavy_weighted_pressure_plate", (new BlockPressurePlateWeighted(Material.ORE, 150)).c(0.5F).a(SoundEffectType.a).c("weightedPlate_heavy"));
a(149, "unpowered_comparator", (new BlockRedstoneComparator(false)).c(0.0F).a(SoundEffectType.a).c("comparator").p());
a(150, "powered_comparator", (new BlockRedstoneComparator(true)).c(0.0F).a(0.625F).a(SoundEffectType.a).c("comparator").p());
a(151, "daylight_detector", new BlockDaylightDetector(false));
a(152, "redstone_block", (new BlockPowered(Material.ORE, MaterialMapColor.f)).c(5.0F).b(10.0F).a(SoundEffectType.e).c("blockRedstone").a(CreativeModeTab.d));
a(153, "quartz_ore", (new BlockOre(MaterialMapColor.K)).c(3.0F).b(5.0F).a(SoundEffectType.d).c("netherquartz"));
a(154, "hopper", (new BlockHopper()).c(3.0F).b(8.0F).a(SoundEffectType.e).c("hopper"));
Block block11 = (new BlockQuartz()).a(SoundEffectType.d).c(0.8F).c("quartzBlock");
a(155, "quartz_block", block11);
a(156, "quartz_stairs", (new BlockStairs(block11.getBlockData().set(BlockQuartz.VARIANT, BlockQuartz.EnumQuartzVariant.DEFAULT))).c("stairsQuartz"));
a(157, "activator_rail", (new BlockPoweredRail()).c(0.7F).a(SoundEffectType.e).c("activatorRail"));
a(158, "dropper", (new BlockDropper()).c(3.5F).a(SoundEffectType.d).c("dropper"));
a(159, "stained_hardened_clay", (new BlockCloth(Material.STONE)).c(1.25F).b(7.0F).a(SoundEffectType.d).c("clayHardenedStained"));
a(160, "stained_glass_pane", (new BlockStainedGlassPane()).c(0.3F).a(SoundEffectType.f).c("thinStainedGlass"));
a(161, "leaves2", (new BlockLeaves2()).c("leaves"));
a(162, "log2", (new BlockLog2()).c("log"));
a(163, "acacia_stairs", (new BlockStairs(block1.getBlockData().set(BlockWood.VARIANT, BlockWood.EnumLogVariant.ACACIA))).c("stairsWoodAcacia"));
a(164, "dark_oak_stairs", (new BlockStairs(block1.getBlockData().set(BlockWood.VARIANT, BlockWood.EnumLogVariant.DARK_OAK))).c("stairsWoodDarkOak"));
a(165, "slime", (new BlockSlime()).c("slime").a(SoundEffectType.l));
a(166, "barrier", (new BlockBarrier()).c("barrier"));
a(167, "iron_trapdoor", (new BlockTrapdoor(Material.ORE)).c(5.0F).a(SoundEffectType.e).c("ironTrapdoor").p());
a(168, "prismarine", (new BlockPrismarine()).c(1.5F).b(10.0F).a(SoundEffectType.d).c("prismarine"));
a(169, "sea_lantern", (new BlockSeaLantern(Material.SHATTERABLE)).c(0.3F).a(SoundEffectType.f).a(1.0F).c("seaLantern"));
a(170, "hay_block", (new BlockHay()).c(0.5F).a(SoundEffectType.c).c("hayBlock").a(CreativeModeTab.b));
a(171, "carpet", (new BlockCarpet()).c(0.1F).a(SoundEffectType.g).c("woolCarpet").d(0));
a(172, "hardened_clay", (new BlockHardenedClay()).c(1.25F).b(7.0F).a(SoundEffectType.d).c("clayHardened"));
a(173, "coal_block", (new Block(Material.STONE, MaterialMapColor.E)).c(5.0F).b(10.0F).a(SoundEffectType.d).c("blockCoal").a(CreativeModeTab.b));
a(174, "packed_ice", (new BlockPackedIce()).c(0.5F).a(SoundEffectType.f).c("icePacked"));
a(175, "double_plant", new BlockTallPlant());
a(176, "standing_banner", (new BlockBanner.BlockStandingBanner()).c(1.0F).a(SoundEffectType.a).c("banner").p());
a(177, "wall_banner", (new BlockBanner.BlockWallBanner()).c(1.0F).a(SoundEffectType.a).c("banner").p());
a(178, "daylight_detector_inverted", new BlockDaylightDetector(true));
Block block12 = (new BlockRedSandstone()).a(SoundEffectType.d).c(0.8F).c("redSandStone");
a(179, "red_sandstone", block12);
a(180, "red_sandstone_stairs", (new BlockStairs(block12.getBlockData().set(BlockRedSandstone.TYPE, BlockRedSandstone.EnumRedSandstoneVariant.SMOOTH))).c("stairsRedSandStone"));
a(181, "double_stone_slab2", (new BlockDoubleStoneStep2()).c(2.0F).b(10.0F).a(SoundEffectType.d).c("stoneSlab2"));
a(182, "stone_slab2", (new BlockStoneStep2()).c(2.0F).b(10.0F).a(SoundEffectType.d).c("stoneSlab2"));
a(183, "spruce_fence_gate", (new BlockFenceGate(BlockWood.EnumLogVariant.SPRUCE)).c(2.0F).b(5.0F).a(SoundEffectType.a).c("spruceFenceGate"));
a(184, "birch_fence_gate", (new BlockFenceGate(BlockWood.EnumLogVariant.BIRCH)).c(2.0F).b(5.0F).a(SoundEffectType.a).c("birchFenceGate"));
a(185, "jungle_fence_gate", (new BlockFenceGate(BlockWood.EnumLogVariant.JUNGLE)).c(2.0F).b(5.0F).a(SoundEffectType.a).c("jungleFenceGate"));
a(186, "dark_oak_fence_gate", (new BlockFenceGate(BlockWood.EnumLogVariant.DARK_OAK)).c(2.0F).b(5.0F).a(SoundEffectType.a).c("darkOakFenceGate"));
a(187, "acacia_fence_gate", (new BlockFenceGate(BlockWood.EnumLogVariant.ACACIA)).c(2.0F).b(5.0F).a(SoundEffectType.a).c("acaciaFenceGate"));
a(188, "spruce_fence", (new BlockFence(Material.WOOD, BlockWood.EnumLogVariant.SPRUCE.c())).c(2.0F).b(5.0F).a(SoundEffectType.a).c("spruceFence"));
a(189, "birch_fence", (new BlockFence(Material.WOOD, BlockWood.EnumLogVariant.BIRCH.c())).c(2.0F).b(5.0F).a(SoundEffectType.a).c("birchFence"));
a(190, "jungle_fence", (new BlockFence(Material.WOOD, BlockWood.EnumLogVariant.JUNGLE.c())).c(2.0F).b(5.0F).a(SoundEffectType.a).c("jungleFence"));
a(191, "dark_oak_fence", (new BlockFence(Material.WOOD, BlockWood.EnumLogVariant.DARK_OAK.c())).c(2.0F).b(5.0F).a(SoundEffectType.a).c("darkOakFence"));
a(192, "acacia_fence", (new BlockFence(Material.WOOD, BlockWood.EnumLogVariant.ACACIA.c())).c(2.0F).b(5.0F).a(SoundEffectType.a).c("acaciaFence"));
a(193, "spruce_door", (new BlockDoor(Material.WOOD)).c(3.0F).a(SoundEffectType.a).c("doorSpruce").p());
a(194, "birch_door", (new BlockDoor(Material.WOOD)).c(3.0F).a(SoundEffectType.a).c("doorBirch").p());
a(195, "jungle_door", (new BlockDoor(Material.WOOD)).c(3.0F).a(SoundEffectType.a).c("doorJungle").p());
a(196, "acacia_door", (new BlockDoor(Material.WOOD)).c(3.0F).a(SoundEffectType.a).c("doorAcacia").p());
a(197, "dark_oak_door", (new BlockDoor(Material.WOOD)).c(3.0F).a(SoundEffectType.a).c("doorDarkOak").p());
a(198, "end_rod", (new BlockEndRod()).c(0.0F).a(0.9375F).a(SoundEffectType.a).c("endRod"));
a(199, "chorus_plant", (new BlockChorusFruit()).c(0.4F).a(SoundEffectType.a).c("chorusPlant"));
a(200, "chorus_flower", (new BlockChorusFlower()).c(0.4F).a(SoundEffectType.a).c("chorusFlower"));
Block block13 = (new Block(Material.STONE, MaterialMapColor.r)).c(1.5F).b(10.0F).a(SoundEffectType.d).a(CreativeModeTab.b).c("purpurBlock");
a(201, "purpur_block", block13);
a(202, "purpur_pillar", (new BlockRotatable(Material.STONE, MaterialMapColor.r)).c(1.5F).b(10.0F).a(SoundEffectType.d).a(CreativeModeTab.b).c("purpurPillar"));
a(203, "purpur_stairs", (new BlockStairs(block13.getBlockData())).c("stairsPurpur"));
a(204, "purpur_double_slab", (new BlockPurpurSlab.Default()).c(2.0F).b(10.0F).a(SoundEffectType.d).c("purpurSlab"));
a(205, "purpur_slab", (new BlockPurpurSlab.Half()).c(2.0F).b(10.0F).a(SoundEffectType.d).c("purpurSlab"));
a(206, "end_bricks", (new Block(Material.STONE, MaterialMapColor.d)).a(SoundEffectType.d).c(0.8F).a(CreativeModeTab.b).c("endBricks"));
a(207, "beetroots", (new BlockBeetroot()).c("beetroots"));
Block block14 = (new BlockGrassPath()).c(0.65F).a(SoundEffectType.c).c("grassPath").p();
a(208, "grass_path", block14);
a(209, "end_gateway", (new BlockEndGateway(Material.PORTAL)).c(-1.0F).b(6000000.0F));
a(210, "repeating_command_block", (new BlockCommand(MaterialMapColor.z)).j().b(6000000.0F).c("repeatingCommandBlock"));
a(211, "chain_command_block", (new BlockCommand(MaterialMapColor.C)).j().b(6000000.0F).c("chainCommandBlock"));
a(212, "frosted_ice", (new BlockIceFrost()).c(0.5F).d(3).a(SoundEffectType.f).c("frostedIce"));
a(213, "magma", (new BlockMagma()).c(0.5F).a(SoundEffectType.d).c("magma"));
a(214, "nether_wart_block", (new Block(Material.GRASS, MaterialMapColor.D)).a(CreativeModeTab.b).c(1.0F).a(SoundEffectType.a).c("netherWartBlock"));
a(215, "red_nether_brick", (new BlockNetherbrick()).c(2.0F).b(10.0F).a(SoundEffectType.d).c("redNetherBrick").a(CreativeModeTab.b));
a(216, "bone_block", (new BlockBone()).c("boneBlock"));
a(217, "structure_void", (new BlockStructureVoid()).c("structureVoid"));
a(218, "observer", (new BlockObserver()).c(3.0F).c("observer"));
a(219, "white_shulker_box", (new BlockShulkerBox(EnumColor.WHITE)).c(2.0F).a(SoundEffectType.d).c("shulkerBoxWhite"));
a(220, "orange_shulker_box", (new BlockShulkerBox(EnumColor.ORANGE)).c(2.0F).a(SoundEffectType.d).c("shulkerBoxOrange"));
a(221, "magenta_shulker_box", (new BlockShulkerBox(EnumColor.MAGENTA)).c(2.0F).a(SoundEffectType.d).c("shulkerBoxMagenta"));
a(222, "light_blue_shulker_box", (new BlockShulkerBox(EnumColor.LIGHT_BLUE)).c(2.0F).a(SoundEffectType.d).c("shulkerBoxLightBlue"));
a(223, "yellow_shulker_box", (new BlockShulkerBox(EnumColor.YELLOW)).c(2.0F).a(SoundEffectType.d).c("shulkerBoxYellow"));
a(224, "lime_shulker_box", (new BlockShulkerBox(EnumColor.LIME)).c(2.0F).a(SoundEffectType.d).c("shulkerBoxLime"));
a(225, "pink_shulker_box", (new BlockShulkerBox(EnumColor.PINK)).c(2.0F).a(SoundEffectType.d).c("shulkerBoxPink"));
a(226, "gray_shulker_box", (new BlockShulkerBox(EnumColor.GRAY)).c(2.0F).a(SoundEffectType.d).c("shulkerBoxGray"));
a(227, "silver_shulker_box", (new BlockShulkerBox(EnumColor.SILVER)).c(2.0F).a(SoundEffectType.d).c("shulkerBoxSilver"));
a(228, "cyan_shulker_box", (new BlockShulkerBox(EnumColor.CYAN)).c(2.0F).a(SoundEffectType.d).c("shulkerBoxCyan"));
a(229, "purple_shulker_box", (new BlockShulkerBox(EnumColor.PURPLE)).c(2.0F).a(SoundEffectType.d).c("shulkerBoxPurple"));
a(230, "blue_shulker_box", (new BlockShulkerBox(EnumColor.BLUE)).c(2.0F).a(SoundEffectType.d).c("shulkerBoxBlue"));
a(231, "brown_shulker_box", (new BlockShulkerBox(EnumColor.BROWN)).c(2.0F).a(SoundEffectType.d).c("shulkerBoxBrown"));
a(232, "green_shulker_box", (new BlockShulkerBox(EnumColor.GREEN)).c(2.0F).a(SoundEffectType.d).c("shulkerBoxGreen"));
a(233, "red_shulker_box", (new BlockShulkerBox(EnumColor.RED)).c(2.0F).a(SoundEffectType.d).c("shulkerBoxRed"));
a(234, "black_shulker_box", (new BlockShulkerBox(EnumColor.BLACK)).c(2.0F).a(SoundEffectType.d).c("shulkerBoxBlack"));
a(255, "structure_block", (new BlockStructure()).j().b(6000000.0F).c("structureBlock"));
Block.REGISTRY.a();
Iterator iterator = Block.REGISTRY.iterator();
while (iterator.hasNext()) {
Block block15 = (Block) iterator.next();
if (block15.material == Material.AIR) {
block15.p = false;
} else {
boolean flag = false;
boolean flag1 = block15 instanceof BlockStairs;
boolean flag2 = block15 instanceof BlockStepAbstract;
boolean flag3 = block15 == block6 || block15 == block14;
boolean flag4 = block15.n;
boolean flag5 = block15.m == 0;
if (flag1 || flag2 || flag3 || flag4 || flag5) {
flag = true;
}
block15.p = flag;
}
}
Set hashset = HashObjSets.newMutableSet(new Block[] { Block.REGISTRY.get(new MinecraftKey("tripwire"))});
Iterator iterator1 = Block.REGISTRY.iterator();
while (iterator1.hasNext()) {
Block block16 = (Block) iterator1.next();
if (hashset.contains(block16)) {
for (int i = 0; i < 15; ++i) {
int j = Block.REGISTRY.a(block16) << 4 | i; // CraftBukkit - decompile error
Block.REGISTRY_ID.a(block16.fromLegacyData(i), j);
}
} else {
UnmodifiableIterator unmodifiableiterator = block16.s().a().iterator();
while (unmodifiableiterator.hasNext()) {
IBlockData iblockdata = (IBlockData) unmodifiableiterator.next();
int k = Block.REGISTRY.a(block16) << 4 | block16.toLegacyData(iblockdata); // CraftBukkit - decompile error
Block.REGISTRY_ID.a(iblockdata, k);
}
}
}
}
// CraftBukkit start
public int getExpDrop(World world, IBlockData data, int enchantmentLevel) {
return 0;
}
// CraftBukkit end
private static void a(int i, MinecraftKey minecraftkey, Block block) {
Block.REGISTRY.a(i, minecraftkey, block);
}
private static void a(int i, String s, Block block) {
a(i, new MinecraftKey(s), block);
}
// Spigot start
public static float range(float min, float value, float max) {
if (value < min) {
return min;
}
if (value > max) {
return max;
}
return value;
}
// Spigot end
public static enum EnumRandomOffset {
NONE, XZ, XYZ;
private EnumRandomOffset() {}
}
}