public class BlockGenericPipe extends BlockBuildCraft
| Modifier and Type | Field and Description |
|---|---|
static int |
facadeRenderColor |
static java.util.Map<BlockIndex,Pipe> |
pipeRemoved |
static java.util.Map<net.minecraft.item.Item,java.lang.Class<? extends Pipe>> |
pipes |
keepInventory, randblockConstructorCalled, blockHardness, blockIcon, blockMaterial, blockParticleGravity, blockRegistry, blockResistance, canBlockGrass, enableStats, 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() |
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) |
int |
colorMultiplier(net.minecraft.world.IBlockAccess world,
int x,
int y,
int z) |
net.minecraft.tileentity.TileEntity |
createNewTileEntity(net.minecraft.world.World world,
int metadata) |
static Pipe |
createPipe(net.minecraft.item.Item key) |
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 iblockaccess,
int x,
int y,
int z,
int side) |
net.minecraft.util.IIcon |
getIcon(int par1,
int par2) |
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 |
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() |
static boolean |
isPipeRegistered(int key) |
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) |
static boolean |
placePipe(Pipe pipe,
net.minecraft.world.World world,
int i,
int j,
int k,
net.minecraft.block.Block block,
int meta) |
void |
randomDisplayTick(net.minecraft.world.World world,
int i,
int j,
int k,
java.util.Random random) |
void |
registerBlockIcons(net.minecraft.client.renderer.texture.IIconRegister iconRegister) |
static ItemPipe |
registerPipe(java.lang.Class<? extends Pipe> clas) |
static void |
removePipe(Pipe pipe) |
boolean |
renderAsNormalBlock() |
void |
setRenderAllSides() |
void |
setRenderMask(int mask) |
void |
setRenderSide(net.minecraftforge.common.util.ForgeDirection side,
boolean render) |
boolean |
shouldSideBeRendered(net.minecraft.world.IBlockAccess blockAccess,
int x,
int y,
int z,
int side) |
getLightValuebeginLeavesDecay, canBlockStay, canCollideCheck, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canPlaceBlockAt, canPlaceBlockOnSide, canPlaceTorchOnTop, canRenderInPass, canReplace, canSilkHarvest, canSilkHarvest, canSustainLeaves, canSustainPlant, 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, getPlayerRelativeBlockHardness, getRenderBlockPass, 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, onNeighborChange, onPlantGrow, onPostBlockPlaced, quantityDropped, quantityDropped, quantityDroppedWithBonus, recolourBlock, registerBlocks, removedByPlayer, rotateBlock, setBedOccupied, setBlockBounds, setBlockBoundsBasedOnState, setBlockBoundsForItemRender, setBlockName, setBlockTextureName, setBlockUnbreakable, setCreativeTab, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setStepSound, setTickRandomly, shouldCheckWeakPower, 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 static int facadeRenderColor
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 net.minecraft.block.Blockpublic boolean isOpaqueCube()
isOpaqueCube 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 renderAsNormalBlock()
renderAsNormalBlock in class net.minecraft.block.Blockpublic void setRenderMask(int mask)
public final void setRenderAllSides()
public void setRenderSide(net.minecraftforge.common.util.ForgeDirection side,
boolean render)
public boolean shouldSideBeRendered(net.minecraft.world.IBlockAccess blockAccess,
int x,
int y,
int z,
int side)
shouldSideBeRendered 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 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)
public 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 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 net.minecraft.block.Blockpublic net.minecraft.util.IIcon getIcon(net.minecraft.world.IBlockAccess iblockaccess,
int x,
int y,
int z,
int side)
getIcon in class net.minecraft.block.Blockpublic 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 boolean isPipeRegistered(int key)
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)
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 net.minecraft.block.Blockpublic net.minecraft.util.IIcon getIcon(int par1,
int par2)
getIcon in class net.minecraft.block.Blockpublic 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 int colorMultiplier(net.minecraft.world.IBlockAccess world,
int x,
int y,
int z)
colorMultiplier in class net.minecraft.block.Block