public class BlockPipeHolder extends BlockBCTile_Neptune implements ICustomPaintHandler
| Modifier and Type | Field and Description |
|---|---|
static net.minecraftforge.common.property.IUnlistedProperty<java.lang.ref.WeakReference<TilePipeHolder>> |
PROP_TILE |
BLOCK_FACING_6, id, PROP_FACINGBLOCK_STATE_IDS, blockHardness, blockMapColor, blockMaterial, blockParticleGravity, blockResistance, blockSoundType, blockState, capturedDrops, captureDrops, enableStats, FULL_BLOCK_AABB, fullBlock, harvesters, hasTileEntity, lightOpacity, lightValue, needsRandomTick, NULL_AABB, RANDOM, REGISTRY, slipperiness, translucent, useNeighborBrightness| Constructor and Description |
|---|
BlockPipeHolder(net.minecraft.block.material.Material material,
java.lang.String id) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCollisionBoxToList(net.minecraft.block.state.IBlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.AxisAlignedBB entityBox,
java.util.List<net.minecraft.util.math.AxisAlignedBB> collidingBoxes,
net.minecraft.entity.Entity entityIn,
boolean isPistonMoving) |
boolean |
addDestroyEffects(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.client.particle.ParticleManager manager) |
boolean |
addHitEffects(net.minecraft.block.state.IBlockState state,
net.minecraft.world.World worldObj,
net.minecraft.util.math.RayTraceResult target,
net.minecraft.client.particle.ParticleManager manager) |
boolean |
addLandingEffects(net.minecraft.block.state.IBlockState state,
net.minecraft.world.WorldServer worldObj,
net.minecraft.util.math.BlockPos blockPosition,
net.minecraft.block.state.IBlockState iblockstate,
net.minecraft.entity.EntityLivingBase entity,
int numberOfParticles) |
net.minecraft.util.EnumActionResult |
attemptPaint(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.util.math.Vec3d hitPos,
net.minecraft.util.EnumFacing hitSide,
net.minecraft.item.EnumDyeColor paintColour)
Attempts to paint the given block.
|
boolean |
canBeConnectedTo(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing facing) |
boolean |
canConnectRedstone(net.minecraft.block.state.IBlockState state,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing side) |
boolean |
canProvidePower(net.minecraft.block.state.IBlockState state) |
boolean |
canRenderInLayer(net.minecraft.block.state.IBlockState state,
net.minecraft.util.BlockRenderLayer layer) |
net.minecraft.util.math.RayTraceResult |
collisionRayTrace(net.minecraft.block.state.IBlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.Vec3d start,
net.minecraft.util.math.Vec3d end) |
protected net.minecraft.block.state.BlockStateContainer |
createBlockState() |
TileBC_Neptune |
createTileEntity(net.minecraft.world.World world,
net.minecraft.block.state.IBlockState state) |
net.minecraft.block.state.BlockFaceShape |
getBlockFaceShape(net.minecraft.world.IBlockAccess world,
net.minecraft.block.state.IBlockState state,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing face) |
void |
getDrops(net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> toDrop,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
int fortune) |
float |
getExplosionResistance(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.Entity exploder,
net.minecraft.world.Explosion explosion) |
net.minecraft.block.state.IBlockState |
getExtendedState(net.minecraft.block.state.IBlockState state,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos) |
static net.minecraft.util.EnumFacing |
getPartSideHit(net.minecraft.util.math.RayTraceResult trace) |
net.minecraft.item.ItemStack |
getPickBlock(net.minecraft.block.state.IBlockState state,
net.minecraft.util.math.RayTraceResult target,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.EntityPlayer player) |
static TilePipeHolder |
getPipe(net.minecraft.world.IBlockAccess access,
net.minecraft.util.math.BlockPos pos,
boolean requireServer) |
static TilePipeHolder |
getPipe(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
boolean requireServer) |
net.minecraft.util.math.AxisAlignedBB |
getSelectedBoundingBox(net.minecraft.block.state.IBlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos) |
int |
getStrongPower(net.minecraft.block.state.IBlockState blockState,
net.minecraft.world.IBlockAccess blockAccess,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing side) |
int |
getWeakPower(net.minecraft.block.state.IBlockState blockState,
net.minecraft.world.IBlockAccess blockAccess,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing side) |
static EnumWireBetween |
getWireBetweenHit(net.minecraft.util.math.RayTraceResult trace) |
static EnumWirePart |
getWirePartHit(net.minecraft.util.math.RayTraceResult trace) |
void |
harvestBlock(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.tileentity.TileEntity te,
net.minecraft.item.ItemStack stack) |
boolean |
isBlockNormalCube(net.minecraft.block.state.IBlockState state) |
boolean |
isFullBlock(net.minecraft.block.state.IBlockState state) |
boolean |
isFullCube(net.minecraft.block.state.IBlockState state) |
boolean |
isOpaqueCube(net.minecraft.block.state.IBlockState state) |
boolean |
isSideSolid(net.minecraft.block.state.IBlockState base_state,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing side) |
boolean |
onBlockActivated(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.EnumHand hand,
net.minecraft.util.EnumFacing side,
float hitX,
float hitY,
float hitZ) |
void |
onEntityCollidedWithBlock(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.entity.Entity entity) |
net.minecraft.util.math.RayTraceResult |
rayTrace(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.EntityPlayer player) |
net.minecraft.util.math.RayTraceResult |
rayTrace(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.Vec3d start,
net.minecraft.util.math.Vec3d end) |
static EnumWirePart |
rayTraceWire(net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.Vec3d start,
net.minecraft.util.math.Vec3d end) |
boolean |
removedByPlayer(net.minecraft.block.state.IBlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.EntityPlayer player,
boolean willHarvest) |
breakBlock, hasTileEntity, neighborChanged, onBlockExploded, onBlockPlacedByaddProperties, getMetaFromState, getStateForPlacement, getStateFromMeta, isExceptBlockForAttachWithPiston, rotateBlock, withMirror, withRotationaddCollisionBoxToList, addInformation, beginLeavesDecay, canBeReplacedByLeaves, canCollideCheck, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canEntitySpawn, canHarvestBlock, canPlaceBlockAt, canPlaceBlockOnSide, canPlaceTorchOnTop, canSilkHarvest, canSilkHarvest, canSpawnInBlock, canSustainLeaves, canSustainPlant, captureDrops, causesSuffocation, damageDropped, disableStats, doesSideBlockRendering, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, eventReceived, fillWithRain, getActualState, getAiPathNodeType, getAmbientOcclusionLightValue, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlockById, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockLayer, getBlockState, getBoundingBox, getCollisionBoundingBox, getComparatorInputOverride, getCreativeTabToDisplayOn, getDefaultState, getDrops, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFogColor, getHarvestLevel, getHarvestTool, getIdFromBlock, getItem, getItemDropped, getLightOpacity, getLightOpacity, getLightValue, getLightValue, getLocalizedName, getMapColor, getMaterial, getMobilityFlag, getOffset, getOffsetType, getPackedLightmapCoords, getPlayerRelativeBlockHardness, getRenderType, getSilkTouchDrop, getSlipperiness, getSoundType, getSoundType, getStateById, getStateForPlacement, getStateId, getSubBlocks, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getValidRotations, getWeakChanges, hasComparatorInputOverride, hasCustomBreakingProgress, hasTileEntity, isAABBInsideMaterial, isAir, isAssociatedBlock, isBeaconBase, isBed, isBedFoot, isBurning, isCollidable, isEntityInsideMaterial, isEqualTo, isExceptionBlockForAttaching, isFertile, isFireSource, isFlammable, isFoliage, isLadder, isLeaves, isNormalCube, isNormalCube, isPassable, isReplaceable, isReplaceableOreGen, isToolEffective, isTopSolid, isTranslucent, isWood, modifyAcceleration, observedNeighborChange, onBlockAdded, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockHarvested, onEntityWalk, onFallenUpon, onLanded, onNeighborChange, onPlantGrow, quantityDropped, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, randomTick, rayTrace, recolorBlock, registerBlocks, requiresUpdates, setBedOccupied, setBlockUnbreakable, setCreativeTab, setDefaultSlipperiness, setDefaultState, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setSoundType, setTickRandomly, setUnlocalizedName, shouldCheckWeakPower, shouldSideBeRendered, spawnAsEntity, tickRate, toString, updateTickpublic static final net.minecraftforge.common.property.IUnlistedProperty<java.lang.ref.WeakReference<TilePipeHolder>> PROP_TILE
public BlockPipeHolder(net.minecraft.block.material.Material material,
java.lang.String id)
protected net.minecraft.block.state.BlockStateContainer createBlockState()
createBlockState in class BlockBCBase_Neptunepublic TileBC_Neptune createTileEntity(net.minecraft.world.World world, net.minecraft.block.state.IBlockState state)
createTileEntity in class BlockBCTile_Neptunepublic boolean isFullCube(net.minecraft.block.state.IBlockState state)
isFullCube in class net.minecraft.block.Blockpublic boolean isFullBlock(net.minecraft.block.state.IBlockState state)
isFullBlock in class net.minecraft.block.Blockpublic boolean isOpaqueCube(net.minecraft.block.state.IBlockState state)
isOpaqueCube in class net.minecraft.block.Blockpublic void addCollisionBoxToList(net.minecraft.block.state.IBlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.AxisAlignedBB entityBox,
java.util.List<net.minecraft.util.math.AxisAlignedBB> collidingBoxes,
net.minecraft.entity.Entity entityIn,
boolean isPistonMoving)
addCollisionBoxToList in class net.minecraft.block.Block@Nullable
public net.minecraft.util.math.RayTraceResult rayTrace(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.EntityPlayer player)
@Nullable
public net.minecraft.util.math.RayTraceResult collisionRayTrace(net.minecraft.block.state.IBlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.Vec3d start,
net.minecraft.util.math.Vec3d end)
collisionRayTrace in class net.minecraft.block.Block@Nullable
public net.minecraft.util.math.RayTraceResult rayTrace(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.Vec3d start,
net.minecraft.util.math.Vec3d end)
@Nullable public static EnumWirePart rayTraceWire(net.minecraft.util.math.BlockPos pos, net.minecraft.util.math.Vec3d start, net.minecraft.util.math.Vec3d end)
@Nullable public static net.minecraft.util.EnumFacing getPartSideHit(net.minecraft.util.math.RayTraceResult trace)
@Nullable public static EnumWirePart getWirePartHit(net.minecraft.util.math.RayTraceResult trace)
@Nullable public static EnumWireBetween getWireBetweenHit(net.minecraft.util.math.RayTraceResult trace)
public net.minecraft.util.math.AxisAlignedBB getSelectedBoundingBox(net.minecraft.block.state.IBlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
getSelectedBoundingBox in class net.minecraft.block.Blockpublic net.minecraft.item.ItemStack getPickBlock(net.minecraft.block.state.IBlockState state,
net.minecraft.util.math.RayTraceResult target,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.EntityPlayer player)
getPickBlock in class net.minecraft.block.Blockpublic boolean onBlockActivated(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.EnumHand hand,
net.minecraft.util.EnumFacing side,
float hitX,
float hitY,
float hitZ)
onBlockActivated in class BlockBCTile_Neptunepublic boolean removedByPlayer(net.minecraft.block.state.IBlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.EntityPlayer player,
boolean willHarvest)
removedByPlayer in class net.minecraft.block.Blockpublic void getDrops(net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> toDrop,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
int fortune)
getDrops in class BlockBCTile_Neptunepublic float getExplosionResistance(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
@Nullable
net.minecraft.entity.Entity exploder,
net.minecraft.world.Explosion explosion)
getExplosionResistance in class net.minecraft.block.Blockpublic void onEntityCollidedWithBlock(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.entity.Entity entity)
onEntityCollidedWithBlock in class net.minecraft.block.Blockpublic void harvestBlock(net.minecraft.world.World world,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
@Nullable
net.minecraft.tileentity.TileEntity te,
net.minecraft.item.ItemStack stack)
harvestBlock in class net.minecraft.block.Blockpublic boolean canBeConnectedTo(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing facing)
canBeConnectedTo in class net.minecraft.block.Blockpublic boolean isSideSolid(net.minecraft.block.state.IBlockState base_state,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing side)
isSideSolid in class net.minecraft.block.Blockpublic net.minecraft.block.state.BlockFaceShape getBlockFaceShape(net.minecraft.world.IBlockAccess world,
net.minecraft.block.state.IBlockState state,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing face)
getBlockFaceShape in class net.minecraft.block.Blockpublic static TilePipeHolder getPipe(net.minecraft.world.IBlockAccess access, net.minecraft.util.math.BlockPos pos, boolean requireServer)
public static TilePipeHolder getPipe(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, boolean requireServer)
public boolean addLandingEffects(net.minecraft.block.state.IBlockState state,
net.minecraft.world.WorldServer worldObj,
net.minecraft.util.math.BlockPos blockPosition,
net.minecraft.block.state.IBlockState iblockstate,
net.minecraft.entity.EntityLivingBase entity,
int numberOfParticles)
addLandingEffects in class net.minecraft.block.Blockpublic boolean addHitEffects(net.minecraft.block.state.IBlockState state,
net.minecraft.world.World worldObj,
net.minecraft.util.math.RayTraceResult target,
net.minecraft.client.particle.ParticleManager manager)
addHitEffects in class net.minecraft.block.Blockpublic boolean addDestroyEffects(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.client.particle.ParticleManager manager)
addDestroyEffects in class net.minecraft.block.Blockpublic net.minecraft.util.EnumActionResult attemptPaint(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.util.math.Vec3d hitPos,
net.minecraft.util.EnumFacing hitSide,
net.minecraft.item.EnumDyeColor paintColour)
ICustomPaintHandlerattemptPaint in interface ICustomPaintHandlerworld - The world that the block is contained within.pos - The position of the block.state - The current state of the block.hitPos - The absolute hit position of the paintbrush, relative the world's origin.hitSide - The side of the block that was hit.paintColour - The paint colour to attempt to paint with, null if the paint should be cleared (so if this was
a stained glass block, and null was passed, this would set it to a normal, clear, non-stained glass
block.public net.minecraft.block.state.IBlockState getExtendedState(net.minecraft.block.state.IBlockState state,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos)
getExtendedState in class net.minecraft.block.Blockpublic boolean canRenderInLayer(net.minecraft.block.state.IBlockState state,
net.minecraft.util.BlockRenderLayer layer)
canRenderInLayer in class net.minecraft.block.Blockpublic boolean canConnectRedstone(net.minecraft.block.state.IBlockState state,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
@Nullable
net.minecraft.util.EnumFacing side)
canConnectRedstone in class net.minecraft.block.Blockpublic boolean canProvidePower(net.minecraft.block.state.IBlockState state)
canProvidePower in class net.minecraft.block.Blockpublic int getStrongPower(net.minecraft.block.state.IBlockState blockState,
net.minecraft.world.IBlockAccess blockAccess,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing side)
getStrongPower in class net.minecraft.block.Blockpublic boolean isBlockNormalCube(net.minecraft.block.state.IBlockState state)
isBlockNormalCube in class net.minecraft.block.Blockpublic int getWeakPower(net.minecraft.block.state.IBlockState blockState,
net.minecraft.world.IBlockAccess blockAccess,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing side)
getWeakPower in class net.minecraft.block.Block