public class MalisisBlock extends net.minecraft.block.Block implements IBoundingBox, IRegisterable, IComponentProvider
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<IBlockComponent> |
blockComponents |
protected net.minecraft.util.math.AxisAlignedBB |
boundingBox |
protected java.util.List<IComponent> |
components |
protected java.lang.String |
name |
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| Modifier | Constructor and Description |
|---|---|
protected |
MalisisBlock(net.minecraft.block.material.Material material) |
| 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 mask,
java.util.List<net.minecraft.util.math.AxisAlignedBB> list,
net.minecraft.entity.Entity collidingEntity) |
void |
addComponent(IComponent component)
Adds the
IBlockComponent to this IComponentProvider. |
void |
breakBlock(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state) |
protected void |
buildBlockState() |
boolean |
canPlaceBlockAt(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos) |
boolean |
canPlaceBlockOnSide(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing side) |
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 src,
net.minecraft.util.math.Vec3d dest) |
int |
damageDropped(net.minecraft.block.state.IBlockState state) |
java.util.List<IBlockComponent> |
getBlockComponents() |
net.minecraft.util.math.AxisAlignedBB |
getBoundingBox(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
BoundingBoxType type) |
net.minecraft.util.math.AxisAlignedBB[] |
getBoundingBoxes(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
BoundingBoxType type)
Gets the
AxisAlignedBB for this IBoundingBox. |
java.util.List<IComponent> |
getComponents()
Gets the
IBlockComponent for this IComponentProvider. |
net.minecraft.item.Item |
getItem(net.minecraft.block.Block block)
Gets the item to register the implementing
Block with. |
net.minecraft.item.Item |
getItemDropped(net.minecraft.block.state.IBlockState state,
java.util.Random rand,
int fortune) |
int |
getLightOpacity(net.minecraft.block.state.IBlockState state,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos) |
net.minecraft.block.material.MapColor |
getMapColor(net.minecraft.block.state.IBlockState state) |
int |
getMetaFromState(net.minecraft.block.state.IBlockState state) |
java.lang.String |
getName()
Gets the registry name to use.
|
int |
getPackedLightmapCoords(net.minecraft.block.state.IBlockState state,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos) |
protected java.util.List<net.minecraft.block.properties.IProperty<?>> |
getProperties() |
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 world,
net.minecraft.util.math.BlockPos pos) |
net.minecraft.block.state.IBlockState |
getStateFromItemStack(net.minecraft.item.ItemStack itemStack) |
net.minecraft.block.state.IBlockState |
getStateFromMeta(int meta) |
void |
getSubBlocks(net.minecraft.item.Item item,
net.minecraft.creativetab.CreativeTabs tab,
java.util.List<net.minecraft.item.ItemStack> list) |
java.lang.String |
getUnlocalizedName(net.minecraft.block.state.IBlockState state) |
boolean |
isFullBlock(net.minecraft.block.state.IBlockState state) |
boolean |
isFullCube(net.minecraft.block.state.IBlockState state) |
boolean |
isLadder(net.minecraft.block.state.IBlockState state,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.EntityLivingBase entity) |
boolean |
isOpaqueCube(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) |
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.item.ItemStack heldItem,
net.minecraft.util.EnumFacing side,
float hitX,
float hitY,
float hitZ) |
void |
onBlockAdded(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state) |
net.minecraft.block.state.IBlockState |
onBlockPlaced(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing facing,
float hitX,
float hitY,
float hitZ,
int meta,
net.minecraft.entity.EntityLivingBase placer) |
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) |
int |
quantityDropped(net.minecraft.block.state.IBlockState state,
int fortune,
java.util.Random random) |
net.minecraft.block.Block |
setName(java.lang.String name) |
void |
setTexture(net.minecraft.block.Block block) |
void |
setTexture(net.minecraft.block.state.IBlockState state) |
void |
setTexture(net.minecraft.item.Item item) |
void |
setTexture(java.lang.String textureName) |
boolean |
shouldSideBeRendered(net.minecraft.block.state.IBlockState state,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing side) |
addCollisionBoxToList, addDestroyEffects, addHitEffects, addInformation, addLandingEffects, beginLeavesDecay, canBeReplacedByLeaves, canCollideCheck, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canEntitySpawn, canHarvestBlock, canPlaceTorchOnTop, canProvidePower, canRenderInLayer, canRenderInLayer, canReplace, canSilkHarvest, canSilkHarvest, canSpawnInBlock, canSustainLeaves, canSustainPlant, captureDrops, createBlockState, createStackedBlock, createTileEntity, disableStats, doesSideBlockRendering, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, eventReceived, fillWithRain, getActualState, getAmbientOcclusionLightValue, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlockById, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockLayer, getBlockState, getBoundingBox, getCollisionBoundingBox, getComparatorInputOverride, getCreativeTabToDisplayOn, getDefaultState, getDrops, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getHarvestLevel, getHarvestTool, getIdFromBlock, getItem, getLightOpacity, getLightValue, getLightValue, getLocalizedName, getMaterial, getMobilityFlag, getOffsetType, getPickBlock, getPlayerRelativeBlockHardness, getSoundType, getSoundType, getStateById, getStateId, getStrongPower, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getValidRotations, getWeakChanges, getWeakPower, harvestBlock, hasComparatorInputOverride, hasTileEntity, hasTileEntity, isAABBInsideMaterial, isAir, isAssociatedBlock, isBeaconBase, isBed, isBedFoot, isBlockNormalCube, isBlockSolid, isBurning, isCollidable, isEntityInsideMaterial, isEqualTo, isFertile, isFireSource, isFlammable, isFoliage, isFullyOpaque, isLeaves, isNormalCube, isNormalCube, isPassable, isReplaceable, isReplaceableOreGen, isSideSolid, isToolEffective, isTranslucent, isVisuallyOpaque, isWood, modifyAcceleration, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockExploded, onBlockHarvested, onEntityCollidedWithBlock, onEntityWalk, onFallenUpon, onLanded, onNeighborChange, onPlantGrow, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, randomTick, rayTrace, recolorBlock, registerBlocks, removedByPlayer, requiresUpdates, rotateBlock, setBedOccupied, setBlockUnbreakable, setCreativeTab, setDefaultState, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setSoundType, setTickRandomly, setUnlocalizedName, shouldCheckWeakPower, spawnAsEntity, tickRate, toString, updateTick, withMirror, withRotationgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCollisionBoundingBoxes, getRayTraceBoundingBox, getRenderBoundingBox, getRenderingBoundsregistergetComponentprotected java.lang.String name
protected net.minecraft.util.math.AxisAlignedBB boundingBox
protected final java.util.List<IBlockComponent> blockComponents
protected final java.util.List<IComponent> components
protected MalisisBlock(net.minecraft.block.material.Material material)
protected java.util.List<net.minecraft.block.properties.IProperty<?>> getProperties()
protected void buildBlockState()
public java.util.List<IBlockComponent> getBlockComponents()
public java.util.List<IComponent> getComponents()
IComponentProviderIBlockComponent for this IComponentProvider.getComponents in interface IComponentProviderpublic void addComponent(IComponent component)
IComponentProviderIBlockComponent to this IComponentProvider.addComponent in interface IComponentProvidercomponent - the componentpublic net.minecraft.block.Block setName(java.lang.String name)
public java.lang.String getName()
IRegisterablegetName in interface IRegisterablepublic java.lang.String getUnlocalizedName(net.minecraft.block.state.IBlockState state)
public net.minecraft.item.Item getItem(net.minecraft.block.Block block)
IRegisterableBlock with.IllegalStateException if called on a implementor that is not a Block.getItem in interface IRegisterableblock - the blockpublic void setTexture(java.lang.String textureName)
public void setTexture(net.minecraft.item.Item item)
public void setTexture(net.minecraft.block.Block block)
public void setTexture(net.minecraft.block.state.IBlockState state)
public net.minecraft.block.state.IBlockState getStateFromItemStack(net.minecraft.item.ItemStack itemStack)
public void onBlockAdded(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state)
onBlockAdded in class net.minecraft.block.Blockpublic net.minecraft.block.state.IBlockState onBlockPlaced(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing facing,
float hitX,
float hitY,
float hitZ,
int meta,
net.minecraft.entity.EntityLivingBase placer)
onBlockPlaced 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 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.item.ItemStack heldItem,
net.minecraft.util.EnumFacing side,
float hitX,
float hitY,
float hitZ)
onBlockActivated 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)
neighborChanged in class net.minecraft.block.Blockpublic 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 net.minecraft.util.math.AxisAlignedBB getBoundingBox(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
BoundingBoxType type)
getBoundingBox in interface IBoundingBoxpublic net.minecraft.util.math.AxisAlignedBB[] getBoundingBoxes(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
BoundingBoxType type)
IBoundingBoxAxisAlignedBB for this IBoundingBox.getBoundingBoxes in interface IBoundingBoxworld - the worldpos - the postype - the typepublic void addCollisionBoxToList(net.minecraft.block.state.IBlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.AxisAlignedBB mask,
java.util.List<net.minecraft.util.math.AxisAlignedBB> list,
net.minecraft.entity.Entity collidingEntity)
addCollisionBoxToList in interface IBoundingBoxaddCollisionBoxToList in class net.minecraft.block.Blockpublic 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 interface IBoundingBoxgetSelectedBoundingBox in class net.minecraft.block.Blockpublic 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 src,
net.minecraft.util.math.Vec3d dest)
collisionRayTrace in interface IBoundingBoxcollisionRayTrace in class net.minecraft.block.Blockpublic boolean canPlaceBlockOnSide(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing side)
canPlaceBlockOnSide in class net.minecraft.block.Blockpublic boolean canPlaceBlockAt(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
canPlaceBlockAt in class net.minecraft.block.Blockpublic int damageDropped(net.minecraft.block.state.IBlockState state)
damageDropped in class net.minecraft.block.Blockpublic void getSubBlocks(net.minecraft.item.Item item,
net.minecraft.creativetab.CreativeTabs tab,
java.util.List<net.minecraft.item.ItemStack> list)
getSubBlocks in class net.minecraft.block.Blockpublic net.minecraft.block.material.MapColor getMapColor(net.minecraft.block.state.IBlockState state)
getMapColor 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 boolean shouldSideBeRendered(net.minecraft.block.state.IBlockState state,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing side)
shouldSideBeRendered in class net.minecraft.block.Blockpublic boolean isFullBlock(net.minecraft.block.state.IBlockState state)
isFullBlock in class net.minecraft.block.Blockpublic boolean isFullCube(net.minecraft.block.state.IBlockState state)
isFullCube in class net.minecraft.block.Blockpublic boolean isOpaqueCube(net.minecraft.block.state.IBlockState state)
isOpaqueCube in class net.minecraft.block.Blockpublic int getPackedLightmapCoords(net.minecraft.block.state.IBlockState state,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos)
getPackedLightmapCoords in class net.minecraft.block.Blockpublic net.minecraft.item.Item getItemDropped(net.minecraft.block.state.IBlockState state,
java.util.Random rand,
int fortune)
getItemDropped in class net.minecraft.block.Blockpublic int quantityDropped(net.minecraft.block.state.IBlockState state,
int fortune,
java.util.Random random)
quantityDropped in class net.minecraft.block.Blockpublic int getLightOpacity(net.minecraft.block.state.IBlockState state,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos)
getLightOpacity in class net.minecraft.block.Blockpublic boolean isLadder(net.minecraft.block.state.IBlockState state,
net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.EntityLivingBase entity)
isLadder in class net.minecraft.block.Blockpublic net.minecraft.util.EnumBlockRenderType getRenderType(net.minecraft.block.state.IBlockState state)
getRenderType in class net.minecraft.block.Block