-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBlock.java
More file actions
754 lines (686 loc) · 31.9 KB
/
Block.java
File metadata and controls
754 lines (686 loc) · 31.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
package net.minecraft.src;
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
import java.util.ArrayList;
import java.util.Random;
public class Block
{
protected Block(int i, Material material)
{
stepSound = soundPowderFootstep;
blockParticleGravity = 1.0F;
slipperiness = 0.6F;
if(blocksList[i] != null)
{
throw new IllegalArgumentException((new StringBuilder()).append("Slot ").append(i).append(" is already occupied by ").append(blocksList[i]).append(" when adding ").append(this).toString());
} else
{
blockMaterial = material;
blocksList[i] = this;
blockID = i;
setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);
opaqueCubeLookup[i] = isOpaqueCube();
lightOpacity[i] = isOpaqueCube() ? 255 : 0;
unusedBooleanArray[i] = !material.getCanBlockGrass();
isBlockContainer[i] = false;
return;
}
}
protected Block(int i, int j, Material material)
{
this(i, material);
blockIndexInTexture = j;
}
protected Block setStepSound(StepSound stepsound)
{
stepSound = stepsound;
return this;
}
protected Block setLightOpacity(int i)
{
lightOpacity[blockID] = i;
return this;
}
protected Block setLightValue(float f)
{
lightValue[blockID] = (int)(15F * f);
return this;
}
protected Block setResistance(float f)
{
blockResistance = f * 3F;
return this;
}
public boolean renderAsNormalBlock()
{
return true;
}
public int getRenderType()
{
return 0;
}
protected Block setHardness(float f)
{
blockHardness = f;
if(blockResistance < f * 5F)
{
blockResistance = f * 5F;
}
return this;
}
protected void setTickOnLoad(boolean flag)
{
tickOnLoad[blockID] = flag;
}
public void setBlockBounds(float f, float f1, float f2, float f3, float f4, float f5)
{
minX = f;
minY = f1;
minZ = f2;
maxX = f3;
maxY = f4;
maxZ = f5;
}
public float getBlockBrightness(IBlockAccess iblockaccess, int i, int j, int k)
{
return iblockaccess.getLightBrightness(i, j, k);
}
public boolean shouldSideBeRendered(IBlockAccess iblockaccess, int i, int j, int k, int l)
{
if(l == 0 && minY > 0.0D)
{
return true;
}
if(l == 1 && maxY < 1.0D)
{
return true;
}
if(l == 2 && minZ > 0.0D)
{
return true;
}
if(l == 3 && maxZ < 1.0D)
{
return true;
}
if(l == 4 && minX > 0.0D)
{
return true;
}
if(l == 5 && maxX < 1.0D)
{
return true;
} else
{
return !iblockaccess.isBlockOpaqueCube(i, j, k);
}
}
public int getBlockTexture(IBlockAccess iblockaccess, int i, int j, int k, int l)
{
return getBlockTextureFromSideAndMetadata(l, iblockaccess.getBlockMetadata(i, j, k));
}
public int getBlockTextureFromSideAndMetadata(int i, int j)
{
return getBlockTextureFromSide(i);
}
public int getBlockTextureFromSide(int i)
{
return blockIndexInTexture;
}
public AxisAlignedBB getSelectedBoundingBoxFromPool(World world, int i, int j, int k)
{
return AxisAlignedBB.getBoundingBoxFromPool((double)i + minX, (double)j + minY, (double)k + minZ, (double)i + maxX, (double)j + maxY, (double)k + maxZ);
}
public void getCollidingBoundingBoxes(World world, int i, int j, int k, AxisAlignedBB axisalignedbb, ArrayList arraylist)
{
AxisAlignedBB axisalignedbb1 = getCollisionBoundingBoxFromPool(world, i, j, k);
if(axisalignedbb1 != null && axisalignedbb.intersectsWith(axisalignedbb1))
{
arraylist.add(axisalignedbb1);
}
}
public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int i, int j, int k)
{
return AxisAlignedBB.getBoundingBoxFromPool((double)i + minX, (double)j + minY, (double)k + minZ, (double)i + maxX, (double)j + maxY, (double)k + maxZ);
}
public boolean isOpaqueCube()
{
return true;
}
public boolean canCollideCheck(int i, boolean flag)
{
return isCollidable();
}
public boolean isCollidable()
{
return true;
}
public void updateTick(World world, int i, int j, int k, Random random)
{
}
public void randomDisplayTick(World world, int i, int j, int k, Random random)
{
}
public void onBlockDestroyedByPlayer(World world, int i, int j, int k, int l)
{
}
public void onNeighborBlockChange(World world, int i, int j, int k, int l)
{
}
public int tickRate()
{
return 10;
}
public void onBlockAdded(World world, int i, int j, int k)
{
}
public void onBlockRemoval(World world, int i, int j, int k)
{
}
public int quantityDropped(Random random)
{
return 1;
}
public int idDropped(int i, Random random)
{
return blockID;
}
public float blockStrength(EntityPlayer entityplayer)
{
if(blockHardness < 0.0F)
{
return 0.0F;
}
if(!entityplayer.canHarvestBlock(this))
{
return 1.0F / blockHardness / 100F;
} else
{
return entityplayer.getCurrentPlayerStrVsBlock(this) / blockHardness / 30F;
}
}
public void dropBlockAsItem(World world, int i, int j, int k, int l)
{
dropBlockAsItemWithChance(world, i, j, k, l, 1.0F);
}
public void dropBlockAsItemWithChance(World world, int i, int j, int k, int l, float f)
{
if(world.multiplayerWorld)
{
return;
}
int i1 = quantityDropped(world.rand);
for(int j1 = 0; j1 < i1; j1++)
{
if(world.rand.nextFloat() > f)
{
continue;
}
int k1 = idDropped(l, world.rand);
if(k1 > 0)
{
float f1 = 0.7F;
double d = (double)(world.rand.nextFloat() * f1) + (double)(1.0F - f1) * 0.5D;
double d1 = (double)(world.rand.nextFloat() * f1) + (double)(1.0F - f1) * 0.5D;
double d2 = (double)(world.rand.nextFloat() * f1) + (double)(1.0F - f1) * 0.5D;
EntityItem entityitem = new EntityItem(world, (double)i + d, (double)j + d1, (double)k + d2, new ItemStack(k1, 1, damageDropped(l)));
entityitem.delayBeforeCanPickup = 10;
world.entityJoinedWorld(entityitem);
}
}
}
protected int damageDropped(int i)
{
return 0;
}
public float getExplosionResistance(Entity entity)
{
return blockResistance / 5F;
}
public MovingObjectPosition collisionRayTrace(World world, int i, int j, int k, Vec3D vec3d, Vec3D vec3d1)
{
setBlockBoundsBasedOnState(world, i, j, k);
vec3d = vec3d.addVector(-i, -j, -k);
vec3d1 = vec3d1.addVector(-i, -j, -k);
Vec3D vec3d2 = vec3d.getIntermediateWithXValue(vec3d1, minX);
Vec3D vec3d3 = vec3d.getIntermediateWithXValue(vec3d1, maxX);
Vec3D vec3d4 = vec3d.getIntermediateWithYValue(vec3d1, minY);
Vec3D vec3d5 = vec3d.getIntermediateWithYValue(vec3d1, maxY);
Vec3D vec3d6 = vec3d.getIntermediateWithZValue(vec3d1, minZ);
Vec3D vec3d7 = vec3d.getIntermediateWithZValue(vec3d1, maxZ);
if(!isVecInsideYZBounds(vec3d2))
{
vec3d2 = null;
}
if(!isVecInsideYZBounds(vec3d3))
{
vec3d3 = null;
}
if(!isVecInsideXZBounds(vec3d4))
{
vec3d4 = null;
}
if(!isVecInsideXZBounds(vec3d5))
{
vec3d5 = null;
}
if(!isVecInsideXYBounds(vec3d6))
{
vec3d6 = null;
}
if(!isVecInsideXYBounds(vec3d7))
{
vec3d7 = null;
}
Vec3D vec3d8 = null;
if(vec3d2 != null && (vec3d8 == null || vec3d.distanceTo(vec3d2) < vec3d.distanceTo(vec3d8)))
{
vec3d8 = vec3d2;
}
if(vec3d3 != null && (vec3d8 == null || vec3d.distanceTo(vec3d3) < vec3d.distanceTo(vec3d8)))
{
vec3d8 = vec3d3;
}
if(vec3d4 != null && (vec3d8 == null || vec3d.distanceTo(vec3d4) < vec3d.distanceTo(vec3d8)))
{
vec3d8 = vec3d4;
}
if(vec3d5 != null && (vec3d8 == null || vec3d.distanceTo(vec3d5) < vec3d.distanceTo(vec3d8)))
{
vec3d8 = vec3d5;
}
if(vec3d6 != null && (vec3d8 == null || vec3d.distanceTo(vec3d6) < vec3d.distanceTo(vec3d8)))
{
vec3d8 = vec3d6;
}
if(vec3d7 != null && (vec3d8 == null || vec3d.distanceTo(vec3d7) < vec3d.distanceTo(vec3d8)))
{
vec3d8 = vec3d7;
}
if(vec3d8 == null)
{
return null;
}
byte byte0 = -1;
if(vec3d8 == vec3d2)
{
byte0 = 4;
}
if(vec3d8 == vec3d3)
{
byte0 = 5;
}
if(vec3d8 == vec3d4)
{
byte0 = 0;
}
if(vec3d8 == vec3d5)
{
byte0 = 1;
}
if(vec3d8 == vec3d6)
{
byte0 = 2;
}
if(vec3d8 == vec3d7)
{
byte0 = 3;
}
return new MovingObjectPosition(i, j, k, byte0, vec3d8.addVector(i, j, k));
}
private boolean isVecInsideYZBounds(Vec3D vec3d)
{
if(vec3d == null)
{
return false;
} else
{
return vec3d.yCoord >= minY && vec3d.yCoord <= maxY && vec3d.zCoord >= minZ && vec3d.zCoord <= maxZ;
}
}
private boolean isVecInsideXZBounds(Vec3D vec3d)
{
if(vec3d == null)
{
return false;
} else
{
return vec3d.xCoord >= minX && vec3d.xCoord <= maxX && vec3d.zCoord >= minZ && vec3d.zCoord <= maxZ;
}
}
private boolean isVecInsideXYBounds(Vec3D vec3d)
{
if(vec3d == null)
{
return false;
} else
{
return vec3d.xCoord >= minX && vec3d.xCoord <= maxX && vec3d.yCoord >= minY && vec3d.yCoord <= maxY;
}
}
public void onBlockDestroyedByExplosion(World world, int i, int j, int k)
{
}
public int getRenderBlockPass()
{
return 0;
}
public boolean canPlaceBlockAt(World world, int i, int j, int k)
{
int l = world.getBlockId(i, j, k);
return l == 0 || blocksList[l].blockMaterial.getIsLiquid();
}
public boolean blockActivated(World world, int i, int j, int k, EntityPlayer entityplayer)
{
return false;
}
public void onEntityWalking(World world, int i, int j, int k, Entity entity)
{
}
public void onBlockPlaced(World world, int i, int j, int k, int l)
{
}
public void onBlockClicked(World world, int i, int j, int k, EntityPlayer entityplayer)
{
}
public void velocityToAddToEntity(World world, int i, int j, int k, Entity entity, Vec3D vec3d)
{
}
public void setBlockBoundsBasedOnState(IBlockAccess iblockaccess, int i, int j, int k)
{
}
public int colorMultiplier(IBlockAccess iblockaccess, int i, int j, int k)
{
return 0xffffff;
}
public boolean isPoweringTo(IBlockAccess iblockaccess, int i, int j, int k, int l)
{
return false;
}
public boolean canProvidePower()
{
return false;
}
public void onEntityCollidedWithBlock(World world, int i, int j, int k, Entity entity)
{
}
public boolean isIndirectlyPoweringTo(World world, int i, int j, int k, int l)
{
return false;
}
public void func_237_e()
{
}
public void harvestBlock(World world, int i, int j, int k, int l)
{
dropBlockAsItem(world, i, j, k, l);
}
public boolean canBlockStay(World world, int i, int j, int k)
{
return true;
}
public void onBlockPlacedBy(World world, int i, int j, int k, EntityLiving entityliving)
{
}
public Block setBlockName(String s)
{
blockName = (new StringBuilder()).append("tile.").append(s).toString();
return this;
}
public String getBlockName()
{
return blockName;
}
public void playBlock(World world, int i, int j, int k, int l, int i1)
{
}
static Class _mthclass$(String s)
{
try
{
return Class.forName(s);
}
catch(ClassNotFoundException classnotfoundexception)
{
throw new NoClassDefFoundError(classnotfoundexception.getMessage());
}
}
public static final StepSound soundPowderFootstep;
public static final StepSound soundWoodFootstep;
public static final StepSound soundGravelFootstep;
public static final StepSound soundGrassFootstep;
public static final StepSound soundStoneFootstep;
public static final StepSound soundMetalFootstep;
public static final StepSound soundGlassFootstep;
public static final StepSound soundClothFootstep;
public static final StepSound soundSandFootstep;
public static final Block blocksList[];
public static final boolean tickOnLoad[] = new boolean[256];
public static final boolean opaqueCubeLookup[] = new boolean[256];
public static final boolean isBlockContainer[] = new boolean[256];
public static final int lightOpacity[] = new int[256];
public static final boolean unusedBooleanArray[];
public static final int lightValue[] = new int[256];
public static final Block stone;
public static final BlockGrass grass;
public static final Block dirt;
public static final Block cobblestone;
public static final Block planks;
public static final Block sapling;
public static final Block bedrock;
public static final Block waterStill;
public static final Block waterMoving;
public static final Block lavaStill;
public static final Block lavaMoving;
public static final Block sand;
public static final Block gravel;
public static final Block oreGold;
public static final Block oreIron;
public static final Block oreCoal;
public static final Block wood;
public static final BlockLeaves leaves;
public static final Block sponge;
public static final Block glass;
public static final Block oreLapis;
public static final Block blockLapis;
public static final Block dispenser;
public static final Block sandStone;
public static final Block musicBlock;
public static final Block field_9262_S;
public static final Block field_9261_T = null;
public static final Block field_9260_U = null;
public static final Block field_9259_V = null;
public static final Block field_9258_W = null;
public static final Block field_9257_X = null;
public static final Block field_9256_Y = null;
public static final Block field_9255_Z = null;
public static final Block field_9269_aa = null;
public static final Block cloth;
public static final Block field_9268_ac = null;
public static final BlockFlower plantYellow;
public static final BlockFlower plantRed;
public static final BlockFlower mushroomBrown;
public static final BlockFlower mushroomRed;
public static final Block blockGold;
public static final Block blockSteel;
public static final Block stairDouble;
public static final Block stairSingle;
public static final Block brick;
public static final Block tnt;
public static final Block bookShelf;
public static final Block cobblestoneMossy;
public static final Block obsidian;
public static final Block torchWood;
public static final Block unknown;
public static final BlockFire fire;
public static final Block mobSpawner;
public static final Block stairCompactPlanks;
public static final Block crate;
public static final Block redstoneWire;
public static final Block oreDiamond;
public static final Block blockDiamond;
public static final Block workbench;
public static final Block crops;
public static final Block tilledField;
public static final Block stoneOvenIdle;
public static final Block stoneOvenActive;
public static final Block signPost;
public static final Block doorWood;
public static final Block ladder;
public static final Block minecartTrack;
public static final Block stairCompactCobblestone;
public static final Block signWall;
public static final Block lever;
public static final Block pressurePlateStone;
public static final Block doorSteel;
public static final Block pressurePlatePlanks;
public static final Block oreRedstone;
public static final Block oreRedstoneGlowing;
public static final Block torchRedstoneIdle;
public static final Block torchRedstoneActive;
public static final Block button;
public static final Block snow;
public static final Block ice;
public static final Block blockSnow;
public static final Block cactus;
public static final Block blockClay;
public static final Block reed;
public static final Block jukebox;
public static final Block fence;
public static final Block pumpkin;
public static final Block bloodStone;
public static final Block slowSand;
public static final Block lightStone;
public static final BlockPortal portal;
public static final Block pumpkinLantern;
public static final Block cake;
public static final Block field_22021_bh;
public static final Block field_22020_bi;
public int blockIndexInTexture;
public final int blockID;
protected float blockHardness;
protected float blockResistance;
public double minX;
public double minY;
public double minZ;
public double maxX;
public double maxY;
public double maxZ;
public StepSound stepSound;
public float blockParticleGravity;
public final Material blockMaterial;
public float slipperiness;
private String blockName;
static
{
soundPowderFootstep = new StepSound("stone", 1.0F, 1.0F);
soundWoodFootstep = new StepSound("wood", 1.0F, 1.0F);
soundGravelFootstep = new StepSound("gravel", 1.0F, 1.0F);
soundGrassFootstep = new StepSound("grass", 1.0F, 1.0F);
soundStoneFootstep = new StepSound("stone", 1.0F, 1.0F);
soundMetalFootstep = new StepSound("stone", 1.0F, 1.5F);
soundGlassFootstep = new StepSoundStone("stone", 1.0F, 1.0F);
soundClothFootstep = new StepSound("cloth", 1.0F, 1.0F);
soundSandFootstep = new StepSoundSand("sand", 1.0F, 1.0F);
blocksList = new Block[256];
unusedBooleanArray = new boolean[256];
stone = (new BlockStone(1, 1)).setHardness(1.5F).setResistance(10F).setStepSound(soundStoneFootstep).setBlockName("stone");
unknown = (new BlockUnknown(96, 224)).setHardness(1.5F).setResistance(10F).setStepSound(soundClothFootstep).setLightValue(1.0F).setLightOpacity(255).setBlockName("unknown");
grass = (BlockGrass)(new BlockGrass(2)).setHardness(0.6F).setStepSound(soundGrassFootstep).setBlockName("grass");
dirt = (new BlockDirt(3, 2)).setHardness(0.5F).setStepSound(soundGravelFootstep).setLightValue(1.0F).setBlockName("dirt");
cobblestone = (new Block(4, 16, Material.rock)).setHardness(2.0F).setResistance(10F).setStepSound(soundStoneFootstep).setBlockName("stonebrick");
planks = (new Block(5, 4, Material.wood)).setHardness(2.0F).setResistance(5F).setStepSound(soundWoodFootstep).setLightValue(1.0F).setBlockName("wood");
sapling = (new BlockSapling(6, 15)).setHardness(0.0F).setStepSound(soundGrassFootstep).setBlockName("sapling");
bedrock = (new Block(7, 17, Material.rock)).setHardness(0.625F).setResistance(5F).setStepSound(soundStoneFootstep).setBlockName("bedrock");
waterStill = (new BlockFlowing(8, Material.water)).setHardness(100F).setLightOpacity(3).setBlockName("water");
waterMoving = (new BlockStationary(9, Material.water)).setHardness(100F).setLightOpacity(3).setBlockName("water");
lavaStill = (new BlockFlowing(10, Material.lava)).setHardness(0.0F).setLightValue(1.0F).setLightOpacity(255).setBlockName("lava");
lavaMoving = (new BlockStationary(11, Material.lava)).setHardness(100F).setLightValue(1.0F).setLightOpacity(255).setBlockName("lava");
sand = (new BlockSand(12, 18)).setHardness(0.5F).setStepSound(soundSandFootstep).setLightValue(1.0F).setBlockName("sand");
gravel = (new BlockGravel(13, 19)).setHardness(0.6F).setStepSound(soundGravelFootstep).setLightValue(1.0F).setBlockName("gravel");
oreGold = (new BlockOre(14, 32)).setHardness(3F).setResistance(5F).setStepSound(soundStoneFootstep).setLightValue(1.0F).setBlockName("oreGold");
oreIron = (new BlockOre(15, 33)).setHardness(3F).setResistance(5F).setStepSound(soundStoneFootstep).setLightValue(1.0F).setBlockName("oreIron");
oreCoal = (new BlockOre(16, 34)).setHardness(3F).setResistance(5F).setStepSound(soundStoneFootstep).setLightValue(1.0F).setBlockName("oreCoal");
wood = (new BlockLog(17)).setHardness(2.0F).setStepSound(soundWoodFootstep).setLightValue(1.0F).setBlockName("log");
leaves = (BlockLeaves)(new BlockLeaves(18, 52)).setHardness(0.2F).setLightOpacity(1).setStepSound(soundGrassFootstep).setBlockName("leaves");
sponge = (new BlockSponge(19)).setHardness(0.6F).setStepSound(soundGrassFootstep).setBlockName("sponge");
glass = (new BlockGlass(20, 49, Material.glass, false)).setHardness(0.3F).setStepSound(soundGlassFootstep).setLightValue(1.0F).setBlockName("glass");
oreLapis = (new BlockOre(21, 160)).setHardness(3F).setResistance(5F).setStepSound(soundStoneFootstep).setLightValue(1.0F).setBlockName("oreLapis");
blockLapis = (new Block(22, 144, Material.rock)).setHardness(3F).setResistance(5F).setStepSound(soundStoneFootstep).setLightValue(1.0F).setBlockName("blockLapis");
dispenser = (new BlockDispenser(23)).setHardness(3.5F).setStepSound(soundStoneFootstep).setBlockName("dispenser");
sandStone = (new BlockSandStone(24)).setStepSound(soundStoneFootstep).setHardness(0.8F).setBlockName("sandStone");
musicBlock = (new BlockNote(25)).setHardness(0.8F).setBlockName("musicBlock");
field_9262_S = (new BlockBed(26)).setHardness(0.2F).setLightValue(1.0F).setBlockName("bed");
cloth = (new BlockCloth()).setHardness(0.8F).setStepSound(soundClothFootstep).setBlockName("cloth");
plantYellow = (BlockFlower)(new BlockFlower(37, 13)).setHardness(0.0F).setStepSound(soundGrassFootstep).setBlockName("flower");
plantRed = (BlockFlower)(new BlockFlower(38, 12)).setHardness(0.0F).setStepSound(soundGrassFootstep).setBlockName("rose");
mushroomBrown = (BlockFlower)(new BlockMushroom(39, 29)).setHardness(0.0F).setStepSound(soundGrassFootstep).setLightValue(1.0F).setBlockName("mushroom");
mushroomRed = (BlockFlower)(new BlockMushroom(40, 28)).setHardness(0.0F).setStepSound(soundGrassFootstep).setBlockName("mushroom");
blockGold = (new BlockOreBlock(41, 23)).setHardness(3F).setResistance(10F).setStepSound(soundMetalFootstep).setLightValue(1.0F).setBlockName("blockGold");
blockSteel = (new BlockOreBlock(42, 22)).setHardness(5F).setResistance(10F).setStepSound(soundMetalFootstep).setLightValue(1.0F).setBlockName("blockIron");
stairDouble = (new BlockStep(43, true)).setHardness(2.0F).setResistance(10F).setStepSound(soundStoneFootstep).setLightValue(1.0F).setBlockName("stoneSlab");
stairSingle = (new BlockStep(44, false)).setHardness(2.0F).setResistance(10F).setStepSound(soundStoneFootstep).setLightValue(1.0F).setBlockName("stoneSlab");
brick = (new Block(45, 7, Material.rock)).setHardness(2.0F).setResistance(10F).setStepSound(soundStoneFootstep).setLightValue(1.0F).setBlockName("brick");
tnt = (new BlockTNT(46, 8)).setHardness(0.0F).setStepSound(soundGrassFootstep).setBlockName("tnt");
bookShelf = (new BlockBookshelf(47, 35)).setHardness(1.5F).setStepSound(soundWoodFootstep).setBlockName("bookshelf");
cobblestoneMossy = (new Block(48, 36, Material.rock)).setHardness(2.0F).setResistance(10F).setStepSound(soundStoneFootstep).setBlockName("stoneMoss");
obsidian = (new BlockObsidian(49, 37)).setHardness(10F).setResistance(2000F).setStepSound(soundStoneFootstep).setBlockName("obsidian");
torchWood = (new BlockTorch(50, 80)).setHardness(0.0F).setLightValue(1.0F).setStepSound(soundWoodFootstep).setBlockName("torch");
fire = (BlockFire)(new BlockFire(51, 31)).setHardness(0.0F).setLightValue(1.0F).setStepSound(soundWoodFootstep).setBlockName("fire");
mobSpawner = (new BlockMobSpawner(52, 65)).setHardness(5F).setStepSound(soundMetalFootstep).setLightValue(1.0F).setBlockName("mobSpawner");
stairCompactPlanks = (new BlockStairs(53, planks)).setBlockName("stairsWood");
crate = (new BlockChest(54)).setHardness(2.5F).setStepSound(soundWoodFootstep).setBlockName("chest");
redstoneWire = (new BlockRedstoneWire(55, 164)).setHardness(0.0F).setStepSound(soundPowderFootstep).setLightValue(1.0F).setBlockName("redstoneDust");
oreDiamond = (new BlockOre(56, 50)).setHardness(3F).setResistance(5F).setStepSound(soundStoneFootstep).setLightValue(1.0F).setBlockName("oreDiamond");
blockDiamond = (new BlockOreBlock(57, 24)).setHardness(5F).setResistance(10F).setStepSound(soundMetalFootstep).setLightValue(1.0F).setBlockName("blockDiamond");
workbench = (new BlockWorkbench(58)).setHardness(2.5F).setStepSound(soundWoodFootstep).setBlockName("workbench");
crops = (new BlockCrops(59, 88)).setHardness(0.0F).setStepSound(soundGrassFootstep).setBlockName("crops");
tilledField = (new BlockSoil(60)).setHardness(0.6F).setStepSound(soundGravelFootstep).setBlockName("farmland");
stoneOvenIdle = (new BlockFurnace(61, false)).setHardness(3.5F).setStepSound(soundStoneFootstep).setBlockName("furnace");
stoneOvenActive = (new BlockFurnace(62, true)).setHardness(3.5F).setStepSound(soundStoneFootstep).setLightValue(1.0F).setBlockName("furnace");
signPost = (new BlockSign(63, TileEntitySign.class, true)).setHardness(1.0F).setStepSound(soundWoodFootstep).setBlockName("sign");
doorWood = (new BlockDoor(64, Material.wood)).setHardness(3F).setStepSound(soundWoodFootstep).setBlockName("doorWood");
ladder = (new BlockLadder(65, 83)).setHardness(0.4F).setStepSound(soundWoodFootstep).setBlockName("ladder");
minecartTrack = (new BlockMinecartTrack(66, 128)).setHardness(0.7F).setStepSound(soundMetalFootstep).setBlockName("rail");
stairCompactCobblestone = (new BlockStairs(67, cobblestone)).setBlockName("stairsStone");
signWall = (new BlockSign(68, TileEntitySign.class, false)).setHardness(1.0F).setStepSound(soundWoodFootstep).setBlockName("sign");
lever = (new BlockLever(69, 96)).setHardness(0.5F).setStepSound(soundWoodFootstep).setBlockName("lever");
pressurePlateStone = (new BlockPressurePlate(70, stone.blockIndexInTexture, EnumMobType.mobs)).setHardness(0.5F).setStepSound(soundStoneFootstep).setBlockName("pressurePlate");
doorSteel = (new BlockDoor(71, Material.iron)).setHardness(5F).setStepSound(soundMetalFootstep).setLightValue(1.0F).setBlockName("doorIron");
pressurePlatePlanks = (new BlockPressurePlate(72, planks.blockIndexInTexture, EnumMobType.everything)).setHardness(0.5F).setStepSound(soundWoodFootstep).setBlockName("pressurePlate");
oreRedstone = (new BlockRedstoneOre(73, 51, false)).setHardness(3F).setResistance(5F).setStepSound(soundStoneFootstep).setBlockName("oreRedstone");
oreRedstoneGlowing = (new BlockRedstoneOre(74, 51, true)).setLightValue(1.0F).setHardness(3F).setResistance(5F).setStepSound(soundStoneFootstep).setBlockName("oreRedstone");
torchRedstoneIdle = (new BlockRedstoneTorch(75, 115, false)).setHardness(0.0F).setStepSound(soundWoodFootstep).setBlockName("notGate");
torchRedstoneActive = (new BlockRedstoneTorch(76, 99, true)).setHardness(0.0F).setLightValue(1.0F).setStepSound(soundWoodFootstep).setBlockName("notGate");
button = (new BlockButton(77, stone.blockIndexInTexture)).setHardness(0.5F).setStepSound(soundStoneFootstep).setBlockName("button");
snow = (new BlockSnow(78, 66)).setHardness(0.1F).setStepSound(soundClothFootstep).setBlockName("snow");
ice = (new BlockIce(79, 67)).setHardness(0.5F).setLightOpacity(3).setStepSound(soundGlassFootstep).setBlockName("ice");
blockSnow = (new BlockSnowBlock(80, 66)).setHardness(0.2F).setStepSound(soundClothFootstep).setBlockName("snow");
cactus = (new BlockCactus(81, 70)).setHardness(0.4F).setStepSound(soundClothFootstep).setBlockName("cactus");
blockClay = (new BlockClay(82, 72)).setHardness(0.6F).setStepSound(soundGravelFootstep).setBlockName("clay");
reed = (new BlockReed(83, 73)).setHardness(0.0F).setStepSound(soundGrassFootstep).setBlockName("reeds");
jukebox = (new BlockJukeBox(84, 74)).setHardness(2.0F).setResistance(10F).setStepSound(soundStoneFootstep).setBlockName("jukebox");
fence = (new BlockFence(85, 4)).setHardness(2.0F).setResistance(5F).setStepSound(soundWoodFootstep).setBlockName("fence");
pumpkin = (new BlockPumpkin(86, 102, false)).setHardness(1.0F).setStepSound(soundWoodFootstep).setBlockName("pumpkin");
bloodStone = (new BlockBloodStone(87, 103)).setHardness(0.4F).setStepSound(soundStoneFootstep).setLightValue(1.0F).setBlockName("hellrock");
slowSand = (new BlockSlowSand(88, 104)).setHardness(0.5F).setStepSound(soundSandFootstep).setBlockName("hellsand");
lightStone = (new BlockLightStone(89, 105, Material.glass)).setHardness(0.3F).setStepSound(soundGlassFootstep).setLightValue(1.0F).setBlockName("lightgem");
portal = (BlockPortal)(new BlockPortal(90, 14)).setHardness(-1F).setStepSound(soundGlassFootstep).setLightValue(1.0F).setBlockName("portal");
pumpkinLantern = (new BlockPumpkin(91, 102, true)).setHardness(1.0F).setStepSound(soundWoodFootstep).setLightValue(1.0F).setBlockName("litpumpkin");
cake = (new BlockCake(92, 121)).setHardness(0.5F).setStepSound(soundClothFootstep).setBlockName("cake");
field_22021_bh = (new BlockRedstoneRepeater(93, false)).setHardness(0.0F).setStepSound(soundWoodFootstep).setLightValue(1.0F).setBlockName("diode");
field_22020_bi = (new BlockRedstoneRepeater(94, true)).setHardness(0.0F).setLightValue(1.0F).setStepSound(soundWoodFootstep).setLightValue(1.0F).setBlockName("diode");
Item.itemsList[cloth.blockID] = (new ItemCloth(cloth.blockID - 256)).setItemName("cloth");
Item.itemsList[wood.blockID] = (new ItemLog(wood.blockID - 256)).setItemName("log");
Item.itemsList[stairSingle.blockID] = (new ItemSlab(stairSingle.blockID - 256)).setItemName("stoneSlab");
for(int i = 0; i < 256; i++)
{
if(blocksList[i] != null && Item.itemsList[i] == null)
{
Item.itemsList[i] = new ItemBlock(i - 256);
}
}
unusedBooleanArray[0] = true;
}
}