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_FACING
BLOCK_STATE_IDS, blockHardness, blockMapColor, blockMaterial, blockParticleGravity, blockResistance, blockSoundType, blockState, capturedDrops, captureDrops, enableStats, FULL_BLOCK_AABB, fullBlock, harvesters, isBlockContainer, 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() |
net.minecraft.tileentity.TileEntity |
createNewTileEntity(net.minecraft.world.World worldIn,
int meta) |
java.util.List<net.minecraft.item.ItemStack> |
getDrops(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) |
void |
neighborChanged(net.minecraft.block.state.IBlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.Block blockIn,
net.minecraft.util.math.BlockPos fromPos) |
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, onBlockExploded, onBlockPlacedBy
addProperties, getMetaFromState, getStateForPlacement, getStateFromMeta, register, register, register, register, rotateBlock, withMirror, withRotation
addCollisionBoxToList, addInformation, beginLeavesDecay, canBeReplacedByLeaves, canCollideCheck, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canEntitySpawn, canHarvestBlock, canPlaceBlockAt, canPlaceBlockOnSide, canPlaceTorchOnTop, canSilkHarvest, canSilkHarvest, canSpawnInBlock, canSustainLeaves, canSustainPlant, captureDrops, causesSuffocation, createTileEntity, 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, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getHarvestLevel, getHarvestTool, getIdFromBlock, getItem, getItemDropped, getLightOpacity, getLightOpacity, getLightValue, getLightValue, getLocalizedName, getMapColor, getMaterial, getMobilityFlag, getOffset, getOffsetType, getPackedLightmapCoords, getPlayerRelativeBlockHardness, getRenderType, getSilkTouchDrop, getSoundType, getSoundType, getStateById, getStateForPlacement, getStateId, getSubBlocks, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getValidRotations, getWeakChanges, hasComparatorInputOverride, hasCustomBreakingProgress, hasTileEntity, hasTileEntity, isAABBInsideMaterial, isAir, isAssociatedBlock, isBeaconBase, isBed, isBedFoot, isBlockSolid, isBurning, isCollidable, isEntityInsideMaterial, isEqualTo, isFertile, isFireSource, isFlammable, isFoliage, isFullyOpaque, isLadder, isLeaves, isNormalCube, isNormalCube, isPassable, isReplaceable, isReplaceableOreGen, isToolEffective, 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, setDefaultState, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setSoundType, setTickRandomly, setUnlocalizedName, shouldCheckWeakPower, shouldSideBeRendered, spawnAsEntity, tickRate, toString, updateTick
public 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_Neptune
public net.minecraft.tileentity.TileEntity createNewTileEntity(net.minecraft.world.World worldIn, int meta)
createNewTileEntity
in interface net.minecraft.block.ITileEntityProvider
public boolean isFullCube(net.minecraft.block.state.IBlockState state)
isFullCube
in class net.minecraft.block.Block
public boolean isFullBlock(net.minecraft.block.state.IBlockState state)
isFullBlock
in class net.minecraft.block.Block
public boolean isOpaqueCube(net.minecraft.block.state.IBlockState state)
isOpaqueCube
in class net.minecraft.block.Block
public 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.Block
public void neighborChanged(net.minecraft.block.state.IBlockState state, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.Block blockIn, net.minecraft.util.math.BlockPos fromPos)
neighborChanged
in class net.minecraft.block.Block
public 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.Block
public 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_Neptune
public 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.Block
public java.util.List<net.minecraft.item.ItemStack> getDrops(net.minecraft.world.IBlockAccess world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.state.IBlockState state, int fortune)
getDrops
in class BlockBCTile_Neptune
public 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.Block
public 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.Block
public 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.Block
public boolean canBeConnectedTo(net.minecraft.world.IBlockAccess world, net.minecraft.util.math.BlockPos pos, net.minecraft.util.EnumFacing facing)
canBeConnectedTo
in class net.minecraft.block.Block
public 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.Block
public 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.Block
public 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.Block
public 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.Block
public 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)
ICustomPaintHandler
attemptPaint
in interface ICustomPaintHandler
world
- 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.Block
public boolean canRenderInLayer(net.minecraft.block.state.IBlockState state, net.minecraft.util.BlockRenderLayer layer)
canRenderInLayer
in class net.minecraft.block.Block
public 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.Block
public boolean canProvidePower(net.minecraft.block.state.IBlockState state)
canProvidePower
in class net.minecraft.block.Block
public 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.Block
public boolean isBlockNormalCube(net.minecraft.block.state.IBlockState state)
isBlockNormalCube
in class net.minecraft.block.Block
public 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