public class BlockBase<P extends java.lang.Enum<P> & IBlockType & net.minecraft.util.IStringSerializable> extends BlockForestry implements IItemModelRegister, ISpriteRegister, IStateMapperRegister, IBlockRotatable
| Modifier and Type | Field and Description |
|---|---|
P |
blockType |
static net.minecraft.block.properties.PropertyEnum<net.minecraft.util.EnumFacing> |
FACING
use this instead of
BlockHorizontal.FACING so the blocks rotate in a circle instead of NSWE order. |
BLOCK_STATE_IDS, blockHardness, blockMapColor, blockParticleGravity, blockResistance, blockSoundType, blockState, capturedDrops, captureDrops, enableStats, FULL_BLOCK_AABB, fullBlock, harvesters, hasTileEntity, lightOpacity, lightValue, material, needsRandomTick, NULL_AABB, RANDOM, REGISTRY, slipperiness, translucent, useNeighborBrightness| Constructor and Description |
|---|
BlockBase(P blockType) |
BlockBase(P blockType,
net.minecraft.block.material.Material material) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addDestroyEffects(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.client.particle.ParticleManager effectRenderer) |
boolean |
addHitEffects(net.minecraft.block.state.IBlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.RayTraceResult target,
net.minecraft.client.particle.ParticleManager effectRenderer) |
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) |
boolean |
addRunningEffects(net.minecraft.block.state.IBlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.Entity entity) |
void |
breakBlock(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state) |
net.minecraft.util.math.RayTraceResult |
collisionRayTrace(net.minecraft.block.state.IBlockState blockState,
net.minecraft.world.World worldIn,
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 world,
int meta) |
net.minecraft.block.state.BlockStateContainer |
getBlockState() |
net.minecraft.util.math.AxisAlignedBB |
getCollisionBoundingBox(net.minecraft.block.state.IBlockState blockState,
net.minecraft.world.IBlockAccess worldIn,
net.minecraft.util.math.BlockPos pos) |
int |
getMetaFromState(net.minecraft.block.state.IBlockState state) |
protected net.minecraft.util.EnumFacing |
getPlacementRotation(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing side) |
net.minecraft.util.EnumBlockRenderType |
getRenderType(net.minecraft.block.state.IBlockState state) |
net.minecraft.util.math.AxisAlignedBB |
getSelectedBoundingBox(net.minecraft.block.state.IBlockState state,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos) |
net.minecraft.block.state.IBlockState |
getStateFromMeta(int meta) |
boolean |
getUseNeighborBrightness(net.minecraft.block.state.IBlockState state) |
void |
init() |
boolean |
isFullCube(net.minecraft.block.state.IBlockState state) |
boolean |
isNormalCube(net.minecraft.block.state.IBlockState state) |
boolean |
isOpaqueCube(net.minecraft.block.state.IBlockState state) |
boolean |
onBlockActivated(net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.entity.player.EntityPlayer playerIn,
net.minecraft.util.EnumHand hand,
net.minecraft.util.EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
void |
onBlockPlacedBy(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.entity.EntityLivingBase placer,
net.minecraft.item.ItemStack stack) |
void |
registerModel(net.minecraft.item.Item item,
IModelManager manager) |
void |
registerSprites(ITextureManager manager) |
void |
registerStateMapper() |
void |
rotateAfterPlacement(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing side) |
net.minecraft.block.state.IBlockState |
withMirror(net.minecraft.block.state.IBlockState state,
net.minecraft.util.Mirror mirrorIn) |
net.minecraft.block.state.IBlockState |
withRotation(net.minecraft.block.state.IBlockState state,
net.minecraft.util.Rotation rot) |
onNeighborChangeaddCollisionBoxToList, addCollisionBoxToList, addInformation, beginLeavesDecay, canBeConnectedTo, canBeReplacedByLeaves, canCollideCheck, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canEntitySpawn, canHarvestBlock, canPlaceBlockAt, canPlaceBlockOnSide, canPlaceTorchOnTop, canProvidePower, canRenderInLayer, canSilkHarvest, canSilkHarvest, canSpawnInBlock, canSustainLeaves, canSustainPlant, captureDrops, causesSuffocation, createTileEntity, damageDropped, disableStats, doesSideBlockChestOpening, doesSideBlockRendering, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, eventReceived, fillWithRain, getActualState, getAiPathNodeType, getAiPathNodeType, getAmbientOcclusionLightValue, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlockById, getBlockFaceShape, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockLiquidHeight, getBoundingBox, getComparatorInputOverride, getCreativeTab, getDefaultState, getDrops, getDrops, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getFogColor, getHarvestLevel, getHarvestTool, getIdFromBlock, getItem, getItemDropped, getLightOpacity, getLightOpacity, getLightValue, getLightValue, getLocalizedName, getMapColor, getMaterial, getOffset, getOffsetType, getPackedLightmapCoords, getPickBlock, getPlayerRelativeBlockHardness, getPushReaction, getRenderLayer, getSilkTouchDrop, getSlipperiness, getSoundType, getSoundType, getStateAtViewpoint, getStateById, getStateForPlacement, getStateForPlacement, getStateId, getStrongPower, getSubBlocks, getTickRandomly, getTranslationKey, getValidRotations, getWeakChanges, getWeakPower, harvestBlock, hasComparatorInputOverride, hasCustomBreakingProgress, hasTileEntity, hasTileEntity, isAABBInsideLiquid, isAABBInsideMaterial, isAir, isAssociatedBlock, isBeaconBase, isBed, isBedFoot, isBlockNormalCube, isBurning, isCollidable, isEntityInsideMaterial, isEqualTo, isExceptBlockForAttachWithPiston, isExceptionBlockForAttaching, isFertile, isFireSource, isFlammable, isFoliage, isFullBlock, isLadder, isLeaves, isNormalCube, isPassable, isReplaceable, isReplaceableOreGen, isSideSolid, isStickyBlock, isToolEffective, isTopSolid, isTranslucent, isWood, modifyAcceleration, neighborChanged, observedNeighborChange, onBlockAdded, onBlockClicked, onBlockExploded, onBlockHarvested, onEntityCollision, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onPlantGrow, onPlayerDestroy, quantityDropped, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, randomTick, rayTrace, recolorBlock, registerBlocks, removedByPlayer, requiresUpdates, rotateBlock, setBedOccupied, setBlockUnbreakable, setCreativeTab, setDefaultSlipperiness, setDefaultState, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setSoundType, setTickRandomly, setTranslationKey, shouldCheckWeakPower, shouldSideBeRendered, spawnAsEntity, tickRate, toString, updateTickpublic static final net.minecraft.block.properties.PropertyEnum<net.minecraft.util.EnumFacing> FACING
BlockHorizontal.FACING so the blocks rotate in a circle instead of NSWE order.public final P extends java.lang.Enum<P> & IBlockType & net.minecraft.util.IStringSerializable blockType
public BlockBase(P blockType, net.minecraft.block.material.Material material)
public BlockBase(P blockType)
public boolean isOpaqueCube(net.minecraft.block.state.IBlockState state)
isOpaqueCube in class net.minecraft.block.Blockpublic boolean isNormalCube(net.minecraft.block.state.IBlockState state)
isNormalCube in class net.minecraft.block.Blockpublic net.minecraft.util.EnumBlockRenderType getRenderType(net.minecraft.block.state.IBlockState state)
getRenderType in class net.minecraft.block.Block@Nullable
public net.minecraft.util.math.AxisAlignedBB getCollisionBoundingBox(net.minecraft.block.state.IBlockState blockState,
net.minecraft.world.IBlockAccess worldIn,
net.minecraft.util.math.BlockPos pos)
getCollisionBoundingBox in class net.minecraft.block.Blockpublic net.minecraft.util.math.AxisAlignedBB getSelectedBoundingBox(net.minecraft.block.state.IBlockState state,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos)
getSelectedBoundingBox in class net.minecraft.block.Blockpublic net.minecraft.util.math.RayTraceResult collisionRayTrace(net.minecraft.block.state.IBlockState blockState,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.Vec3d start,
net.minecraft.util.math.Vec3d end)
collisionRayTrace in class net.minecraft.block.Blockpublic net.minecraft.tileentity.TileEntity createNewTileEntity(net.minecraft.world.World world,
int meta)
createNewTileEntity in interface net.minecraft.block.ITileEntityProviderpublic boolean onBlockActivated(net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.entity.player.EntityPlayer playerIn,
net.minecraft.util.EnumHand hand,
net.minecraft.util.EnumFacing facing,
float hitX,
float hitY,
float hitZ)
onBlockActivated in class net.minecraft.block.Blockpublic void rotateAfterPlacement(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing side)
rotateAfterPlacement in interface IBlockRotatableprotected net.minecraft.util.EnumFacing getPlacementRotation(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing side)
public void breakBlock(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state)
breakBlock in class net.minecraft.block.Blockpublic void onBlockPlacedBy(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.entity.EntityLivingBase placer,
net.minecraft.item.ItemStack stack)
onBlockPlacedBy in class BlockForestrypublic void init()
public void registerModel(net.minecraft.item.Item item,
IModelManager manager)
registerModel in interface IItemModelRegisterpublic void registerStateMapper()
registerStateMapper in interface IStateMapperRegisterpublic boolean isFullCube(net.minecraft.block.state.IBlockState state)
isFullCube in class net.minecraft.block.Blockprotected net.minecraft.block.state.BlockStateContainer createBlockState()
createBlockState in class net.minecraft.block.Blockpublic net.minecraft.block.state.IBlockState getStateFromMeta(int meta)
getStateFromMeta in class net.minecraft.block.Blockpublic int getMetaFromState(net.minecraft.block.state.IBlockState state)
getMetaFromState in class net.minecraft.block.Blockpublic net.minecraft.block.state.BlockStateContainer getBlockState()
getBlockState in class net.minecraft.block.Blockpublic net.minecraft.block.state.IBlockState withMirror(net.minecraft.block.state.IBlockState state,
net.minecraft.util.Mirror mirrorIn)
withMirror in class net.minecraft.block.Blockpublic net.minecraft.block.state.IBlockState withRotation(net.minecraft.block.state.IBlockState state,
net.minecraft.util.Rotation rot)
withRotation in class net.minecraft.block.Blockpublic boolean getUseNeighborBrightness(net.minecraft.block.state.IBlockState state)
getUseNeighborBrightness in class net.minecraft.block.Blockpublic boolean addHitEffects(net.minecraft.block.state.IBlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.RayTraceResult target,
net.minecraft.client.particle.ParticleManager effectRenderer)
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 effectRenderer)
addDestroyEffects in class net.minecraft.block.Blockpublic 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 addRunningEffects(net.minecraft.block.state.IBlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.Entity entity)
addRunningEffects in class net.minecraft.block.Blockpublic void registerSprites(ITextureManager manager)
registerSprites in interface ISpriteRegister