public class BlockGenericPipe extends BlockBuildCraft implements IColorRemovable
| Modifier and Type | Class and Description |
|---|---|
static class |
BlockGenericPipe.Part |
static class |
BlockGenericPipe.RaytraceResult |
| Modifier and Type | Field and Description |
|---|---|
static java.util.Map<BlockIndex,Pipe<?>> |
pipeRemoved |
static java.util.Map<net.minecraft.item.Item,java.lang.Class<? extends Pipe>> |
pipes |
icons, keepInventory, maxPasses, rand, renderPassblockConstructorCalled, blockHardness, blockIcon, blockMaterial, blockParticleGravity, blockRegistry, blockResistance, canBlockGrass, capturedDrops, captureDrops, delegate, enableStats, harvesters, isBlockContainer, lightOpacity, lightValue, maxX, maxY, maxZ, minX, minY, minZ, needsRandomTick, opaque, slipperiness, soundTypeAnvil, soundTypeCloth, soundTypeGlass, soundTypeGrass, soundTypeGravel, soundTypeLadder, soundTypeMetal, soundTypePiston, soundTypeSand, soundTypeSnow, soundTypeStone, soundTypeWood, stepSound, textureName, useNeighborBrightness| Constructor and Description |
|---|
BlockGenericPipe() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCollisionBoxesToList(net.minecraft.world.World world,
int i,
int j,
int k,
net.minecraft.util.AxisAlignedBB axisalignedbb,
java.util.List arraylist,
net.minecraft.entity.Entity par7Entity) |
boolean |
addDestroyEffects(net.minecraft.world.World worldObj,
int x,
int y,
int z,
int meta,
net.minecraft.client.particle.EffectRenderer effectRenderer)
Spawn particles for when the block is destroyed.
|
boolean |
addHitEffects(net.minecraft.world.World worldObj,
net.minecraft.util.MovingObjectPosition target,
net.minecraft.client.particle.EffectRenderer effectRenderer)
Spawn a digging particle effect in the world, this is a wrapper around
EffectRenderer.addBlockHitEffects to allow the block more control over
the particles.
|
void |
breakBlock(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraft.block.Block block,
int par6) |
boolean |
canBeReplacedByLeaves(net.minecraft.world.IBlockAccess world,
int x,
int y,
int z) |
boolean |
canConnectRedstone(net.minecraft.world.IBlockAccess world,
int x,
int y,
int z,
int side) |
boolean |
canProvidePower() |
boolean |
canRenderInPass(int pass) |
net.minecraft.util.MovingObjectPosition |
collisionRayTrace(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraft.util.Vec3 origin,
net.minecraft.util.Vec3 direction) |
net.minecraft.tileentity.TileEntity |
createNewTileEntity(net.minecraft.world.World world,
int metadata) |
static Pipe<?> |
createPipe(net.minecraft.item.Item key) |
BlockGenericPipe.RaytraceResult |
doRayTrace(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraft.entity.player.EntityPlayer player) |
void |
dropBlockAsItemWithChance(net.minecraft.world.World world,
int i,
int j,
int k,
int l,
float f,
int dmg) |
float |
getBlockHardness(net.minecraft.world.World par1World,
int par2,
int par3,
int par4) |
java.util.ArrayList<net.minecraft.item.ItemStack> |
getDrops(net.minecraft.world.World world,
int x,
int y,
int z,
int metadata,
int fortune) |
net.minecraft.util.IIcon |
getIcon(net.minecraft.world.IBlockAccess world,
int i,
int j,
int k,
int side) |
net.minecraft.util.IIcon |
getIcon(int side,
int meta) |
net.minecraft.item.Item |
getItemDropped(int meta,
java.util.Random rand,
int dmg) |
net.minecraft.item.ItemStack |
getPickBlock(net.minecraft.util.MovingObjectPosition target,
net.minecraft.world.World world,
int x,
int y,
int z) |
static Pipe<?> |
getPipe(net.minecraft.world.IBlockAccess blockAccess,
int i,
int j,
int k) |
int |
getRenderBlockPass() |
int |
getRenderType() |
net.minecraft.util.AxisAlignedBB |
getSelectedBoundingBoxFromPool(net.minecraft.world.World world,
int x,
int y,
int z) |
static boolean |
isFullyDefined(Pipe<?> pipe) |
boolean |
isNormalCube() |
boolean |
isOpaqueCube() |
int |
isProvidingStrongPower(net.minecraft.world.IBlockAccess iblockaccess,
int x,
int y,
int z,
int l) |
int |
isProvidingWeakPower(net.minecraft.world.IBlockAccess world,
int i,
int j,
int k,
int l) |
boolean |
isSideSolid(net.minecraft.world.IBlockAccess world,
int x,
int y,
int z,
net.minecraftforge.common.util.ForgeDirection side) |
static boolean |
isValid(Pipe<?> pipe) |
boolean |
onBlockActivated(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraft.entity.player.EntityPlayer player,
int side,
float xOffset,
float yOffset,
float zOffset) |
int |
onBlockPlaced(net.minecraft.world.World world,
int x,
int y,
int z,
int side,
float par6,
float par7,
float par8,
int meta) |
void |
onBlockPlacedBy(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraft.entity.EntityLivingBase placer,
net.minecraft.item.ItemStack stack) |
void |
onEntityCollidedWithBlock(net.minecraft.world.World world,
int i,
int j,
int k,
net.minecraft.entity.Entity entity) |
void |
onNeighborBlockChange(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraft.block.Block block) |
void |
onNeighborChange(net.minecraft.world.IBlockAccess world,
int x,
int y,
int z,
int nx,
int ny,
int nz) |
static boolean |
placePipe(Pipe<?> pipe,
net.minecraft.world.World world,
int i,
int j,
int k,
net.minecraft.block.Block block,
int meta,
net.minecraft.entity.player.EntityPlayer player) |
void |
randomDisplayTick(net.minecraft.world.World world,
int i,
int j,
int k,
java.util.Random random) |
boolean |
recolourBlock(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraftforge.common.util.ForgeDirection side,
int colour) |
void |
registerBlockIcons(net.minecraft.client.renderer.texture.IIconRegister iconRegister) |
static ItemPipe |
registerPipe(java.lang.Class<? extends Pipe> clas,
BCCreativeTab creativeTab) |
boolean |
removeColorFromBlock(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraftforge.common.util.ForgeDirection side) |
static void |
removePipe(Pipe<?> pipe) |
boolean |
renderAsNormalBlock() |
static void |
updateNeighbourSignalState(Pipe<?> pipe) |
canRenderInPassBC, getCurrentRenderPass, getFrontSide, getIconAbsolute, getIconAbsolute, getIconBlockNames, getLightValue, hasAlphaPass, isRotatable, registerIconsForMeta, rotateBlock, setAlphaPass, setPassCount, setRotatablebeginLeavesDecay, canBlockStay, canCollideCheck, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canPlaceBlockAt, canPlaceBlockOnSide, canPlaceTorchOnTop, canReplace, canSilkHarvest, canSilkHarvest, canSustainLeaves, canSustainPlant, captureDrops, colorMultiplier, createStackedBlock, createTileEntity, damageDropped, disableStats, dropBlockAsItem, dropBlockAsItem, dropXpOnBlockBreak, fillWithRain, func_149698_L, func_149730_j, func_149735_b, getAmbientOcclusionLightValue, getBedDirection, getBedSpawnPosition, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockById, getBlockColor, getBlockFromItem, getBlockFromName, getBlocksMovement, getBlockTextureFromSide, getCanBlockGrass, getCollisionBoundingBoxFromPool, getComparatorInputOverride, getCreativeTabToDisplayOn, getDamageValue, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getFireSpreadSpeed, getFlammability, getHarvestLevel, getHarvestTool, getIdFromBlock, getItem, getItemIconName, getLightOpacity, getLightOpacity, getLightValue, getLocalizedName, getMapColor, getMaterial, getMixedBrightnessForBlock, getMobilityFlag, getPickBlock, getPlayerRelativeBlockHardness, getRenderColor, getSubBlocks, getTextureName, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getValidRotations, getWeakChanges, harvestBlock, hasComparatorInputOverride, hasTileEntity, hasTileEntity, isAir, isAssociatedBlock, isBeaconBase, isBed, isBedFoot, isBlockNormalCube, isBlockSolid, isBurning, isCollidable, isEqualTo, isFertile, isFireSource, isFlammable, isFlowerPot, isFoliage, isLadder, isLeaves, isNormalCube, isReplaceable, isReplaceableOreGen, isToolEffective, isWood, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockExploded, onBlockHarvested, onBlockPreDestroy, onEntityWalking, onFallenUpon, onPlantGrow, onPostBlockPlaced, quantityDropped, quantityDropped, quantityDroppedWithBonus, registerBlocks, removedByPlayer, removedByPlayer, setBedOccupied, setBlockBounds, setBlockBoundsBasedOnState, setBlockBoundsForItemRender, setBlockName, setBlockTextureName, setBlockUnbreakable, setCreativeTab, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setStepSound, setTickRandomly, shouldCheckWeakPower, shouldSideBeRendered, tickRate, updateTick, velocityToAddToEntitypublic static java.util.Map<net.minecraft.item.Item,java.lang.Class<? extends Pipe>> pipes
public static java.util.Map<BlockIndex,Pipe<?>> pipeRemoved
public float getBlockHardness(net.minecraft.world.World par1World,
int par2,
int par3,
int par4)
getBlockHardness in class net.minecraft.block.Blockpublic int getRenderType()
getRenderType in class BlockBuildCraftpublic boolean canRenderInPass(int pass)
canRenderInPass in class BlockBuildCraftpublic int getRenderBlockPass()
getRenderBlockPass in class BlockBuildCraftpublic boolean isOpaqueCube()
isOpaqueCube in class net.minecraft.block.Blockpublic boolean renderAsNormalBlock()
renderAsNormalBlock in class net.minecraft.block.Blockpublic boolean canBeReplacedByLeaves(net.minecraft.world.IBlockAccess world,
int x,
int y,
int z)
canBeReplacedByLeaves in class net.minecraft.block.Blockpublic boolean isSideSolid(net.minecraft.world.IBlockAccess world,
int x,
int y,
int z,
net.minecraftforge.common.util.ForgeDirection side)
isSideSolid in class net.minecraft.block.Blockpublic boolean isNormalCube()
isNormalCube in class net.minecraft.block.Blockpublic void addCollisionBoxesToList(net.minecraft.world.World world,
int i,
int j,
int k,
net.minecraft.util.AxisAlignedBB axisalignedbb,
java.util.List arraylist,
net.minecraft.entity.Entity par7Entity)
addCollisionBoxesToList in class net.minecraft.block.Blockpublic net.minecraft.util.AxisAlignedBB getSelectedBoundingBoxFromPool(net.minecraft.world.World world,
int x,
int y,
int z)
getSelectedBoundingBoxFromPool in class net.minecraft.block.Blockpublic net.minecraft.util.MovingObjectPosition collisionRayTrace(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraft.util.Vec3 origin,
net.minecraft.util.Vec3 direction)
collisionRayTrace in class net.minecraft.block.Blockpublic BlockGenericPipe.RaytraceResult doRayTrace(net.minecraft.world.World world, int x, int y, int z, net.minecraft.entity.player.EntityPlayer player)
public static void removePipe(Pipe<?> pipe)
public void breakBlock(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraft.block.Block block,
int par6)
breakBlock in class BlockBuildCraftpublic java.util.ArrayList<net.minecraft.item.ItemStack> getDrops(net.minecraft.world.World world,
int x,
int y,
int z,
int metadata,
int fortune)
getDrops in class net.minecraft.block.Blockpublic net.minecraft.tileentity.TileEntity createNewTileEntity(net.minecraft.world.World world,
int metadata)
createNewTileEntity in interface net.minecraft.block.ITileEntityProviderpublic void dropBlockAsItemWithChance(net.minecraft.world.World world,
int i,
int j,
int k,
int l,
float f,
int dmg)
dropBlockAsItemWithChance in class net.minecraft.block.Blockpublic net.minecraft.item.Item getItemDropped(int meta,
java.util.Random rand,
int dmg)
getItemDropped in class net.minecraft.block.Blockpublic net.minecraft.item.ItemStack getPickBlock(net.minecraft.util.MovingObjectPosition target,
net.minecraft.world.World world,
int x,
int y,
int z)
getPickBlock in class net.minecraft.block.Blockpublic void onNeighborBlockChange(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraft.block.Block block)
onNeighborBlockChange in class net.minecraft.block.Blockpublic void onNeighborChange(net.minecraft.world.IBlockAccess world,
int x,
int y,
int z,
int nx,
int ny,
int nz)
onNeighborChange in class net.minecraft.block.Blockpublic int onBlockPlaced(net.minecraft.world.World world,
int x,
int y,
int z,
int side,
float par6,
float par7,
float par8,
int meta)
onBlockPlaced in class net.minecraft.block.Blockpublic void onBlockPlacedBy(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraft.entity.EntityLivingBase placer,
net.minecraft.item.ItemStack stack)
onBlockPlacedBy in class BlockBuildCraftpublic boolean onBlockActivated(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraft.entity.player.EntityPlayer player,
int side,
float xOffset,
float yOffset,
float zOffset)
onBlockActivated in class BlockBuildCraftpublic void onEntityCollidedWithBlock(net.minecraft.world.World world,
int i,
int j,
int k,
net.minecraft.entity.Entity entity)
onEntityCollidedWithBlock in class net.minecraft.block.Blockpublic boolean canConnectRedstone(net.minecraft.world.IBlockAccess world,
int x,
int y,
int z,
int side)
canConnectRedstone in class net.minecraft.block.Blockpublic int isProvidingStrongPower(net.minecraft.world.IBlockAccess iblockaccess,
int x,
int y,
int z,
int l)
isProvidingStrongPower in class net.minecraft.block.Blockpublic boolean canProvidePower()
canProvidePower in class net.minecraft.block.Blockpublic int isProvidingWeakPower(net.minecraft.world.IBlockAccess world,
int i,
int j,
int k,
int l)
isProvidingWeakPower in class net.minecraft.block.Blockpublic void randomDisplayTick(net.minecraft.world.World world,
int i,
int j,
int k,
java.util.Random random)
randomDisplayTick in class net.minecraft.block.Blockpublic static ItemPipe registerPipe(java.lang.Class<? extends Pipe> clas, BCCreativeTab creativeTab)
public static Pipe<?> createPipe(net.minecraft.item.Item key)
public static boolean placePipe(Pipe<?> pipe, net.minecraft.world.World world, int i, int j, int k, net.minecraft.block.Block block, int meta, net.minecraft.entity.player.EntityPlayer player)
public static Pipe<?> getPipe(net.minecraft.world.IBlockAccess blockAccess, int i, int j, int k)
public static boolean isFullyDefined(Pipe<?> pipe)
public static boolean isValid(Pipe<?> pipe)
public void registerBlockIcons(net.minecraft.client.renderer.texture.IIconRegister iconRegister)
registerBlockIcons in class BlockBuildCraftpublic boolean addHitEffects(net.minecraft.world.World worldObj,
net.minecraft.util.MovingObjectPosition target,
net.minecraft.client.particle.EffectRenderer effectRenderer)
addHitEffects in class net.minecraft.block.BlockworldObj - The current worldtarget - The target the player is looking at {x/y/z/side/sub}effectRenderer - A reference to the current effect renderer.public boolean addDestroyEffects(net.minecraft.world.World worldObj,
int x,
int y,
int z,
int meta,
net.minecraft.client.particle.EffectRenderer effectRenderer)
addDestroyEffects in class net.minecraft.block.BlockworldObj - The current worldx - X position to spawn the particley - Y position to spawn the particlez - Z position to spawn the particlemeta - The metadata for the block before it was destroyed.effectRenderer - A reference to the current effect renderer.public boolean recolourBlock(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraftforge.common.util.ForgeDirection side,
int colour)
recolourBlock in class net.minecraft.block.Blockpublic boolean removeColorFromBlock(net.minecraft.world.World world,
int x,
int y,
int z,
net.minecraftforge.common.util.ForgeDirection side)
removeColorFromBlock in interface IColorRemovablepublic static void updateNeighbourSignalState(Pipe<?> pipe)
public net.minecraft.util.IIcon getIcon(net.minecraft.world.IBlockAccess world,
int i,
int j,
int k,
int side)
getIcon in class BlockBuildCraftpublic net.minecraft.util.IIcon getIcon(int side,
int meta)
getIcon in class BlockBuildCraft