public abstract class BasicBlock extends net.minecraft.block.Block implements IAlternativeEntries, IRecipeProvider, IBlockLootTableProvider
net.minecraft.block.Block.RenderSideCacheKeynet.minecraft.block.AbstractBlock.AbstractBlockState, net.minecraft.block.AbstractBlock.IExtendedPositionPredicate<A>, net.minecraft.block.AbstractBlock.IPositionPredicate, net.minecraft.block.AbstractBlock.OffsetType, net.minecraft.block.AbstractBlock.PropertiesBLOCK_STATE_IDS, LOGGER, RANDOM, stateContainer| Constructor and Description |
|---|
BasicBlock(net.minecraft.block.AbstractBlock.Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAlternatives(RegistryManager<?> registry) |
net.minecraft.item.Item |
asItem() |
java.util.List<net.minecraft.util.math.shapes.VoxelShape> |
getBoundingBoxes(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader source,
net.minecraft.util.math.BlockPos pos) |
net.minecraft.util.math.shapes.VoxelShape |
getCollisionShape(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.shapes.ISelectionContext selectionContext) |
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> |
getDynamicDrops(net.minecraft.block.BlockState state,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState newState,
boolean isMoving) |
IFactory<net.minecraft.item.BlockItem> |
getItemBlockFactory() |
net.minecraft.item.ItemGroup |
getItemGroup() |
net.minecraft.loot.LootTable.Builder |
getLootTable(BasicBlockLootTables blockLootTables) |
boolean |
hasCustomBoxes(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader source,
net.minecraft.util.math.BlockPos pos) |
boolean |
hasIndividualRenderVoxelShape() |
void |
onReplaced(net.minecraft.block.BlockState state,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState newState,
boolean isMoving) |
protected static DistanceRayTraceResult |
rayTraceBox(net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.vector.Vector3d start,
net.minecraft.util.math.vector.Vector3d end,
net.minecraft.util.math.shapes.VoxelShape shape) |
protected net.minecraft.util.math.RayTraceResult |
rayTraceBoxesClosest(net.minecraft.util.math.vector.Vector3d start,
net.minecraft.util.math.vector.Vector3d end,
net.minecraft.util.math.BlockPos pos,
java.util.List<net.minecraft.util.math.shapes.VoxelShape> boxes) |
void |
registerRecipe(java.util.function.Consumer<net.minecraft.data.IFinishedRecipe> consumer) |
void |
setItem(net.minecraft.item.BlockItem item) |
void |
setItemGroup(net.minecraft.item.ItemGroup itemGroup) |
addInformation, animateTick, canDropFromExplosion, cannotAttach, canSpawnInBlock, canSustainPlant, doesSideFillSquare, dropXpOnBlockBreak, fillItemGroup, fillStateContainer, fillWithRain, getBlockFromItem, getDefaultState, getDrops, getDrops, getExplosionResistance, getHarvestLevel, getHarvestTool, getItem, getJumpFactor, getSelf, getSlipperiness, getSoundType, getSpeedFactor, getStateById, getStateContainer, getStateForPlacement, getStateId, getTags, getTranslatedName, getTranslationKey, getValidBlockForPosition, harvestBlock, hasEnoughSolidSide, hasSolidSideOnTop, isIn, isOpaque, isVariableOpacity, makeCuboidShape, matchesBlock, nudgeEntitiesWithNewState, onBlockHarvested, onBlockPlacedBy, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onPlayerDestroy, propagatesSkylightDown, replaceBlock, replaceBlockState, setDefaultState, shouldSideBeRendered, spawnAsEntity, spawnDrops, spawnDrops, spawnDrops, ticksRandomly, toStringallowsMovement, canProvidePower, eventReceived, getAmbientOcclusionLightValue, getCollisionShape, getComparatorInputOverride, getContainer, getDrops, getFluidState, getLootTable, getMaterialColor, getOffsetType, getOpacity, getPlayerRelativeBlockHardness, getPositionRandom, getPushReaction, getRaytraceShape, getRayTraceShape, getRenderShape, getRenderType, getShape, getStrongPower, getWeakPower, hasComparatorInputOverride, isAir, isReplaceable, isReplaceable, isSideInvisible, isTileEntityProvider, isTransparent, isValidPosition, mirror, neighborChanged, onBlockActivated, onBlockAdded, onBlockClicked, onEntityCollision, onProjectileCollision, randomTick, rotate, spawnAdditionalDrops, tick, updateDiagonalNeighbors, updatePostPlacementgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, catchFire, collisionExtendsVertically, createTileEntity, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRespawnPosition, getSlipperiness, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hasTileEntity, isAir, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isToolEffective, makesOpenTrapdoorAboveClimbable, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlaypublic BasicBlock(net.minecraft.block.AbstractBlock.Properties properties)
@Nullable protected static DistanceRayTraceResult rayTraceBox(net.minecraft.util.math.BlockPos pos, net.minecraft.util.math.vector.Vector3d start, net.minecraft.util.math.vector.Vector3d end, net.minecraft.util.math.shapes.VoxelShape shape)
@Nonnull
public net.minecraft.util.math.shapes.VoxelShape getCollisionShape(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.shapes.ISelectionContext selectionContext)
getCollisionShape in class net.minecraft.block.AbstractBlockpublic IFactory<net.minecraft.item.BlockItem> getItemBlockFactory()
public void addAlternatives(RegistryManager<?> registry)
addAlternatives in interface IAlternativeEntries@Nonnull public net.minecraft.item.Item asItem()
asItem in interface net.minecraft.util.IItemProviderasItem in class net.minecraft.block.Blockpublic void setItem(net.minecraft.item.BlockItem item)
public java.util.List<net.minecraft.util.math.shapes.VoxelShape> getBoundingBoxes(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader source,
net.minecraft.util.math.BlockPos pos)
public boolean hasCustomBoxes(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader source,
net.minecraft.util.math.BlockPos pos)
@Nullable
protected net.minecraft.util.math.RayTraceResult rayTraceBoxesClosest(net.minecraft.util.math.vector.Vector3d start,
net.minecraft.util.math.vector.Vector3d end,
net.minecraft.util.math.BlockPos pos,
java.util.List<net.minecraft.util.math.shapes.VoxelShape> boxes)
public net.minecraft.item.ItemGroup getItemGroup()
public void setItemGroup(net.minecraft.item.ItemGroup itemGroup)
public void registerRecipe(java.util.function.Consumer<net.minecraft.data.IFinishedRecipe> consumer)
registerRecipe in interface IRecipeProviderpublic void onReplaced(net.minecraft.block.BlockState state,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState newState,
boolean isMoving)
onReplaced in class net.minecraft.block.AbstractBlockpublic net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> getDynamicDrops(net.minecraft.block.BlockState state,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.BlockState newState,
boolean isMoving)
public boolean hasIndividualRenderVoxelShape()
public net.minecraft.loot.LootTable.Builder getLootTable(@Nonnull
BasicBlockLootTables blockLootTables)
getLootTable in interface ILootTableProvider<BasicBlockLootTables>