Bit of a cleanup of the client patches
This commit is contained in:
parent
650f92e858
commit
5257986d76
3 changed files with 6 additions and 14 deletions
|
@ -7,15 +7,6 @@
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
@@ -361,7 +362,7 @@
|
|
||||||
|
|
||||||
public static boolean func_48206_g(int par0)
|
|
||||||
{
|
|
||||||
- Block var1 = blocksList[par0];
|
|
||||||
+ Block var1 = blocksList[par0];
|
|
||||||
return var1 == null ? false : var1.blockMaterial.isOpaque() && var1.renderAsNormalBlock();
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -434,7 +435,7 @@
|
@@ -434,7 +435,7 @@
|
||||||
|
|
||||||
public boolean func_48205_p()
|
public boolean func_48205_p()
|
||||||
|
@ -89,10 +80,11 @@
|
||||||
{
|
{
|
||||||
ItemStack var8 = this.createStackedBlock(par6);
|
ItemStack var8 = this.createStackedBlock(par6);
|
||||||
|
|
||||||
@@ -1077,6 +1077,361 @@
|
@@ -1077,6 +1077,362 @@
|
||||||
*/
|
*/
|
||||||
public void onFallenUpon(World par1World, int par2, int par3, int par4, Entity par5Entity, float par6) {}
|
public void onFallenUpon(World par1World, int par2, int par3, int par4, Entity par5Entity, float par6) {}
|
||||||
|
|
||||||
|
+ /* =================================================== FORGE START =====================================*/
|
||||||
+ /**
|
+ /**
|
||||||
+ * Get a light value for this block, normal ranges are between 0 and 15
|
+ * Get a light value for this block, normal ranges are between 0 and 15
|
||||||
+ *
|
+ *
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -66,14 +70,39 @@
|
@@ -66,14 +70,37 @@
|
||||||
*/
|
*/
|
||||||
public void harvestBlock(World par1World, EntityPlayer par2EntityPlayer, int par3, int par4, int par5, int par6)
|
public void harvestBlock(World par1World, EntityPlayer par2EntityPlayer, int par3, int par4, int par5, int par6)
|
||||||
{
|
{
|
||||||
|
@ -65,6 +65,4 @@
|
||||||
+ ret.add(new ItemStack(this, 1, world.getBlockMetadata(x, y, z)));
|
+ ret.add(new ItemStack(this, 1, world.getBlockMetadata(x, y, z)));
|
||||||
+ return ret;
|
+ return ret;
|
||||||
}
|
}
|
||||||
+
|
|
||||||
+
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,11 +28,13 @@
|
||||||
Vec3D var23 = var13.addVector((double)var18 * var21, (double)var17 * var21, (double)var20 * var21);
|
Vec3D var23 = var13.addVector((double)var18 * var21, (double)var17 * var21, (double)var20 * var21);
|
||||||
MovingObjectPosition var24 = par1World.rayTraceBlocks_do_do(var13, var23, par3, !par3);
|
MovingObjectPosition var24 = par1World.rayTraceBlocks_do_do(var13, var23, par3, !par3);
|
||||||
return var24;
|
return var24;
|
||||||
@@ -570,4 +574,147 @@
|
@@ -570,4 +574,149 @@
|
||||||
{
|
{
|
||||||
StatList.initStats();
|
StatList.initStats();
|
||||||
}
|
}
|
||||||
+
|
+
|
||||||
|
+ /* =========================================================== FORGE START ===============================================================*/
|
||||||
|
+
|
||||||
+ /**
|
+ /**
|
||||||
+ * Called when a new CreativeContainer is opened, populate the list
|
+ * Called when a new CreativeContainer is opened, populate the list
|
||||||
+ * with all of the items for this item you want a player in creative mode
|
+ * with all of the items for this item you want a player in creative mode
|
||||||
|
|
Loading…
Reference in a new issue