public final class BlockController
extends net.minecraft.block.Block
implements net.minecraft.block.ITileEntityProvider
| Constructor and Description |
|---|
BlockController(net.minecraft.block.Block.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.tileentity.TileEntity |
createNewTileEntity(net.minecraft.world.IBlockReader iBlockReader) |
int |
getComparatorInputOverride(net.minecraft.block.state.IBlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos) |
boolean |
hasComparatorInputOverride(net.minecraft.block.state.IBlockState state) |
void |
neighborChanged(net.minecraft.block.state.IBlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.Block neighborBlock,
net.minecraft.util.math.BlockPos neighborPos) |
boolean |
onBlockActivated(net.minecraft.block.state.IBlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.EntityPlayer player,
net.minecraft.util.EnumHand hand,
net.minecraft.util.EnumFacing side,
float hitX,
float hitY,
float hitZ) |
void |
onReplaced(net.minecraft.block.state.IBlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState newState,
boolean flag) |
addInformation, addPropertiesToBuilder, allowsMovement, asItem, canDropFromExplosion, canEntitySpawn, canProvidePower, canSilkHarvest, canSpawnInBlock, causesSuffocation, collisionRayTrace, dropBlockAsItemWithChance, dropXpOnBlockBreak, eventReceived, fillWithRain, func_200122_a, func_200123_i, func_200125_k, func_208061_a, func_209900_a, getAmbientOcclusionLightValue, getBlockById, getBlockFaceShape, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockState, getCollisionShape, getDefaultState, getExplosionResistance, getFluidState, getItem, getItemDropped, getItemsToDropCount, getLightValue, getMapColor, getMaterial, getNameTextComponent, getOffset, getOffsetType, getOpacity, getPackedLightmapCoords, getPlayerRelativeBlockHardness, getPushReaction, getRaytraceShape, getRenderLayer, getRenderShape, getRenderType, getShape, getSilkTouchDrop, getSlipperiness, getSoundType, getStateById, getStateForPlacement, getStateId, getStrongPower, getSubBlocks, getTickRandomly, getTranslationKey, getValidBlockForFacing, getValidBlockForPosition, getWeakPower, harvestBlock, hasCustomBreakingProgress, hasTileEntity, isAir, isBlockNormalCube, isCollidable, isCollidable, isDirt, isExceptBlockForAttachWithPiston, isExceptionBlockForAttaching, isFullCube, isIn, isNormalCube, isOpaque, isOpaqueCube, isReplaceable, isRock, isSolid, isTopSolid, isValidPosition, isVariableOpacity, makeCuboidShape, needsPostProcessing, nudgeEntitiesWithNewState, onBlockAdded, onBlockClicked, onBlockHarvested, onBlockPlacedBy, onEntityCollision, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onPlayerDestroy, quantityDropped, randomDisplayTick, randomTick, register, register, registerBlocks, replaceBlock, setDefaultState, shouldSideBeRendered, spawnAsEntity, tick, tickRate, toString, validateNeighborBlocks, validatePlacement, withMirror, withRotationpublic BlockController(net.minecraft.block.Block.Builder builder)
public boolean onBlockActivated(net.minecraft.block.state.IBlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
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 net.minecraft.block.Blockpublic void onReplaced(net.minecraft.block.state.IBlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState newState,
boolean flag)
onReplaced in class net.minecraft.block.Blockpublic boolean hasComparatorInputOverride(net.minecraft.block.state.IBlockState state)
hasComparatorInputOverride in class net.minecraft.block.Blockpublic int getComparatorInputOverride(net.minecraft.block.state.IBlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
getComparatorInputOverride in class net.minecraft.block.Blockpublic void neighborChanged(net.minecraft.block.state.IBlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.Block neighborBlock,
net.minecraft.util.math.BlockPos neighborPos)
neighborChanged in class net.minecraft.block.Block@Nullable public net.minecraft.tileentity.TileEntity createNewTileEntity(net.minecraft.world.IBlockReader iBlockReader)
createNewTileEntity in interface net.minecraft.block.ITileEntityProvider