This commit is contained in:
AlgorithmX2
2013-12-28 14:54:05 -06:00
parent e9acdcbee2
commit 2878030744
4 changed files with 45 additions and 1 deletions
+16
View File
@@ -11,6 +11,7 @@ import java.util.Random;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
@@ -893,4 +894,19 @@ public class CableBusContainer implements AEMultiTile
return hasRedstone;
}
public boolean isLadder(EntityLivingBase entity)
{
for (ForgeDirection side : ForgeDirection.values())
{
IPart p = getPart( side );
if ( p != null )
{
if ( p.isLadder( entity ) )
return true;
}
}
return false;
}
}