Ladders.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user