2014-01-20 17:41:37 +01:00
|
|
|
package appeng.parts;
|
|
|
|
|
|
|
|
import java.util.EnumSet;
|
|
|
|
import java.util.Random;
|
|
|
|
|
|
|
|
import net.minecraft.entity.Entity;
|
|
|
|
import net.minecraft.entity.EntityLivingBase;
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
|
|
import net.minecraft.util.Vec3;
|
|
|
|
import net.minecraft.world.World;
|
2014-02-09 02:34:52 +01:00
|
|
|
import net.minecraftforge.common.util.ForgeDirection;
|
2014-01-20 17:41:37 +01:00
|
|
|
import appeng.api.parts.SelectedPart;
|
2014-07-21 05:45:08 +02:00
|
|
|
import appeng.api.util.AEColor;
|
2014-02-07 06:51:19 +01:00
|
|
|
import cpw.mods.fml.relauncher.Side;
|
|
|
|
import cpw.mods.fml.relauncher.SideOnly;
|
2014-01-20 17:41:37 +01:00
|
|
|
|
|
|
|
public interface ICableBusContainer
|
|
|
|
{
|
|
|
|
|
|
|
|
int isProvidingStrongPower(ForgeDirection opposite);
|
|
|
|
|
|
|
|
int isProvidingWeakPower(ForgeDirection opposite);
|
|
|
|
|
|
|
|
boolean canConnectRedstone(EnumSet<ForgeDirection> of);
|
|
|
|
|
|
|
|
void onEntityCollision(Entity e);
|
|
|
|
|
|
|
|
boolean activate(EntityPlayer player, Vec3 vecFromPool);
|
|
|
|
|
|
|
|
void onNeighborChanged();
|
|
|
|
|
|
|
|
boolean isSolidOnSide(ForgeDirection side);
|
|
|
|
|
|
|
|
boolean isEmpty();
|
|
|
|
|
|
|
|
SelectedPart selectPart(Vec3 v3);
|
|
|
|
|
2014-07-21 05:45:08 +02:00
|
|
|
boolean recolourBlock(ForgeDirection side, AEColor colour, EntityPlayer who);
|
2014-01-20 17:41:37 +01:00
|
|
|
|
|
|
|
boolean isLadder(EntityLivingBase entity);
|
|
|
|
|
2014-02-07 06:51:19 +01:00
|
|
|
@SideOnly(Side.CLIENT)
|
2014-01-20 17:41:37 +01:00
|
|
|
void randomDisplayTick(World world, int x, int y, int z, Random r);
|
|
|
|
|
|
|
|
int getLightValue();
|
|
|
|
|
|
|
|
}
|