Init commit. b1.7.3 vanilla server

This commit is contained in:
Dereku 2026-01-30 02:20:46 +07:00
commit ee3d133a31
451 changed files with 50531 additions and 0 deletions

View file

@ -0,0 +1,23 @@
package net.minecraft.block;
import java.util.Random;
import net.minecraft.block.material.Material;
import net.minecraft.item.Item;
public class BlockOre extends Block {
public BlockOre(int var1, int var2) {
super(var1, var2, Material.rock);
}
public int idDropped(int var1, Random var2) {
return this.blockID == Block.oreCoal.blockID ? Item.coal.shiftedIndex : (this.blockID == Block.oreDiamond.blockID ? Item.diamond.shiftedIndex : (this.blockID == Block.oreLapis.blockID ? Item.dyePowder.shiftedIndex : this.blockID));
}
public int quantityDropped(Random var1) {
return this.blockID == Block.oreLapis.blockID ? 4 + var1.nextInt(5) : 1;
}
protected int damageDropped(int var1) {
return this.blockID == Block.oreLapis.blockID ? 4 : 0;
}
}