You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
843 B
34 lines
843 B
--- ../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() |
|
{
|
|
|