forked from xjboss/KCauldronX
35 lines
843 B
Diff
35 lines
843 B
Diff
|
--- ../src-base/minecraft/net/minecraft/block/Block.java
|
||
|
+++ ../src-work/minecraft/net/minecraft/block/Block.java
|
||
|
@@ -122,6 +122,7 @@
|
||
|
private String unlocalizedName;
|
||
|
@SideOnly(Side.CLIENT)
|
||
|
protected IIcon blockIcon;
|
||
|
+ public boolean isForgeBlock; // Cauldron
|
||
|
private static final String __OBFID = "CL_00000199";
|
||
|
|
||
|
public final cpw.mods.fml.common.registry.RegistryDelegate<Block> delegate =
|
||
|
@@ -1131,6 +1132,23 @@
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
+ // 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
|
||
|
+
|
||
|
@SideOnly(Side.CLIENT)
|
||
|
protected String getTextureName()
|
||
|
{
|