Package net.minecraft.block
Class AbstractBlock
- All Implemented Interfaces:
IForgeRegistryEntry<Block>
- Direct Known Subclasses:
Block
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interfacestatic interfacestatic enumstatic classNested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ResourceLocationprotected final booleanprotected final floatprotected final floatprotected final booleanprotected final booleanprotected final floatprivate final Supplier<ResourceLocation>protected final Materialprotected final AbstractBlock.Propertiesprotected final SoundTypeprotected final floatprotected static final Direction[]Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract BlockasBlock()abstract ItemasItem()voidattack(BlockState p_196270_1_, World p_196270_2_, BlockPos p_196270_3_, PlayerEntity p_196270_4_) Deprecated.booleancanBeReplaced(BlockState p_225541_1_, Fluid p_225541_2_) Deprecated.booleancanBeReplaced(BlockState p_196253_1_, BlockItemUseContext p_196253_2_) Deprecated.booleancanSurvive(BlockState p_196260_1_, IWorldReader p_196260_2_, BlockPos p_196260_3_) Deprecated.voidentityInside(BlockState p_196262_1_, World p_196262_2_, BlockPos p_196262_3_, Entity p_196262_4_) Deprecated.intgetAnalogOutputSignal(BlockState p_180641_1_, World p_180641_2_, BlockPos p_180641_3_) Deprecated.getBlockSupportShape(BlockState p_230335_1_, IBlockReader p_230335_2_, BlockPos p_230335_3_) Deprecated.getCollisionShape(BlockState p_220071_1_, IBlockReader p_220071_2_, BlockPos p_220071_3_, ISelectionContext p_220071_4_) Deprecated.floatgetDestroyProgress(BlockState p_180647_1_, PlayerEntity p_180647_2_, IBlockReader p_180647_3_, BlockPos p_180647_4_) Deprecated.intgetDirectSignal(BlockState p_176211_1_, IBlockReader p_176211_2_, BlockPos p_176211_3_, Direction p_176211_4_) Deprecated.getDrops(BlockState p_220076_1_, LootContext.Builder p_220076_2_) Deprecated.getFluidState(BlockState p_204507_1_) Deprecated.getInteractionShape(BlockState p_199600_1_, IBlockReader p_199600_2_, BlockPos p_199600_3_) Deprecated.intgetLightBlock(BlockState p_200011_1_, IBlockReader p_200011_2_, BlockPos p_200011_3_) Deprecated.final ResourceLocationgetMenuProvider(BlockState p_220052_1_, World p_220052_2_, BlockPos p_220052_3_) Deprecated.getOcclusionShape(BlockState p_196247_1_, IBlockReader p_196247_2_, BlockPos p_196247_3_) Deprecated.getPistonPushReaction(BlockState p_149656_1_) Deprecated.getRenderShape(BlockState p_149645_1_) Deprecated.longgetSeed(BlockState p_209900_1_, BlockPos p_209900_2_) Deprecated.floatgetShadeBrightness(BlockState p_220080_1_, IBlockReader p_220080_2_, BlockPos p_220080_3_) Deprecated.getShape(BlockState p_220053_1_, IBlockReader p_220053_2_, BlockPos p_220053_3_, ISelectionContext p_220053_4_) Deprecated.intgetSignal(BlockState p_180656_1_, IBlockReader p_180656_2_, BlockPos p_180656_3_, Direction p_180656_4_) Deprecated.getVisualShape(BlockState p_230322_1_, IBlockReader p_230322_2_, BlockPos p_230322_3_, ISelectionContext p_230322_4_) Deprecated.booleanhasAnalogOutputSignal(BlockState p_149740_1_) Deprecated.protected booleanisAir(BlockState state) final booleanDeprecated.booleanisPathfindable(BlockState p_196266_1_, IBlockReader p_196266_2_, BlockPos p_196266_3_, PathType p_196266_4_) Deprecated.booleanisSignalSource(BlockState p_149744_1_) Deprecated.mirror(BlockState p_185471_1_, Mirror p_185471_2_) Deprecated.voidneighborChanged(BlockState p_220069_1_, World p_220069_2_, BlockPos p_220069_3_, Block p_220069_4_, BlockPos p_220069_5_, boolean p_220069_6_) Deprecated.voidonPlace(BlockState p_220082_1_, World p_220082_2_, BlockPos p_220082_3_, BlockState p_220082_4_, boolean p_220082_5_) Deprecated.voidonProjectileHit(World p_220066_1_, BlockState p_220066_2_, BlockRayTraceResult p_220066_3_, ProjectileEntity p_220066_4_) Deprecated.voidonRemove(BlockState p_196243_1_, World p_196243_2_, BlockPos p_196243_3_, BlockState p_196243_4_, boolean p_196243_5_) Deprecated.voidrandomTick(BlockState p_225542_1_, ServerWorld p_225542_2_, BlockPos p_225542_3_, Random p_225542_4_) Deprecated.rotate(BlockState p_185499_1_, Rotation p_185499_2_) Deprecated.booleanskipRendering(BlockState p_200122_1_, BlockState p_200122_2_, Direction p_200122_3_) Deprecated.voidspawnAfterBreak(BlockState p_220062_1_, ServerWorld p_220062_2_, BlockPos p_220062_3_, ItemStack p_220062_4_) Deprecated.voidtick(BlockState p_225534_1_, ServerWorld p_225534_2_, BlockPos p_225534_3_, Random p_225534_4_) Deprecated.booleantriggerEvent(BlockState p_189539_1_, World p_189539_2_, BlockPos p_189539_3_, int p_189539_4_, int p_189539_5_) Deprecated.voidupdateIndirectNeighbourShapes(BlockState p_196248_1_, IWorld p_196248_2_, BlockPos p_196248_3_, int p_196248_4_, int p_196248_5_) Deprecated.updateShape(BlockState p_196271_1_, Direction p_196271_2_, BlockState p_196271_3_, IWorld p_196271_4_, BlockPos p_196271_5_, BlockPos p_196271_6_) Deprecated.use(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) Deprecated.booleanuseShapeForLightOcclusion(BlockState p_220074_1_) Deprecated.Methods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
-
Field Details
-
UPDATE_SHAPE_ORDER
-
material
-
hasCollision
protected final boolean hasCollision -
explosionResistance
protected final float explosionResistance -
isRandomlyTicking
protected final boolean isRandomlyTicking -
soundType
-
friction
protected final float friction -
speedFactor
protected final float speedFactor -
jumpFactor
protected final float jumpFactor -
dynamicShape
protected final boolean dynamicShape -
properties
-
drops
-
lootTableSupplier
-
-
Constructor Details
-
AbstractBlock
-
-
Method Details
-
updateIndirectNeighbourShapes
@Deprecated public void updateIndirectNeighbourShapes(BlockState p_196248_1_, IWorld p_196248_2_, BlockPos p_196248_3_, int p_196248_4_, int p_196248_5_) Deprecated. -
isPathfindable
@Deprecated public boolean isPathfindable(BlockState p_196266_1_, IBlockReader p_196266_2_, BlockPos p_196266_3_, PathType p_196266_4_) Deprecated. -
updateShape
@Deprecated public BlockState updateShape(BlockState p_196271_1_, Direction p_196271_2_, BlockState p_196271_3_, IWorld p_196271_4_, BlockPos p_196271_5_, BlockPos p_196271_6_) Deprecated. -
skipRendering
@Deprecated public boolean skipRendering(BlockState p_200122_1_, BlockState p_200122_2_, Direction p_200122_3_) Deprecated. -
neighborChanged
@Deprecated public void neighborChanged(BlockState p_220069_1_, World p_220069_2_, BlockPos p_220069_3_, Block p_220069_4_, BlockPos p_220069_5_, boolean p_220069_6_) Deprecated. -
onPlace
@Deprecated public void onPlace(BlockState p_220082_1_, World p_220082_2_, BlockPos p_220082_3_, BlockState p_220082_4_, boolean p_220082_5_) Deprecated. -
onRemove
@Deprecated public void onRemove(BlockState p_196243_1_, World p_196243_2_, BlockPos p_196243_3_, BlockState p_196243_4_, boolean p_196243_5_) Deprecated. -
use
@Deprecated public ActionResultType use(BlockState p_225533_1_, World p_225533_2_, BlockPos p_225533_3_, PlayerEntity p_225533_4_, Hand p_225533_5_, BlockRayTraceResult p_225533_6_) Deprecated. -
triggerEvent
@Deprecated public boolean triggerEvent(BlockState p_189539_1_, World p_189539_2_, BlockPos p_189539_3_, int p_189539_4_, int p_189539_5_) Deprecated. -
getRenderShape
Deprecated. -
useShapeForLightOcclusion
Deprecated. -
isSignalSource
Deprecated. -
getPistonPushReaction
Deprecated. -
getFluidState
Deprecated. -
hasAnalogOutputSignal
Deprecated. -
getOffsetType
-
rotate
Deprecated. -
mirror
Deprecated. -
canBeReplaced
Deprecated. -
canBeReplaced
Deprecated. -
getDrops
@Deprecated public List<ItemStack> getDrops(BlockState p_220076_1_, LootContext.Builder p_220076_2_) Deprecated. -
getSeed
Deprecated. -
getOcclusionShape
@Deprecated public VoxelShape getOcclusionShape(BlockState p_196247_1_, IBlockReader p_196247_2_, BlockPos p_196247_3_) Deprecated. -
getBlockSupportShape
@Deprecated public VoxelShape getBlockSupportShape(BlockState p_230335_1_, IBlockReader p_230335_2_, BlockPos p_230335_3_) Deprecated. -
getInteractionShape
@Deprecated public VoxelShape getInteractionShape(BlockState p_199600_1_, IBlockReader p_199600_2_, BlockPos p_199600_3_) Deprecated. -
getLightBlock
@Deprecated public int getLightBlock(BlockState p_200011_1_, IBlockReader p_200011_2_, BlockPos p_200011_3_) Deprecated. -
getMenuProvider
@Nullable @Deprecated public INamedContainerProvider getMenuProvider(BlockState p_220052_1_, World p_220052_2_, BlockPos p_220052_3_) Deprecated. -
canSurvive
@Deprecated public boolean canSurvive(BlockState p_196260_1_, IWorldReader p_196260_2_, BlockPos p_196260_3_) Deprecated. -
getShadeBrightness
@Deprecated public float getShadeBrightness(BlockState p_220080_1_, IBlockReader p_220080_2_, BlockPos p_220080_3_) Deprecated. -
getAnalogOutputSignal
@Deprecated public int getAnalogOutputSignal(BlockState p_180641_1_, World p_180641_2_, BlockPos p_180641_3_) Deprecated. -
getShape
@Deprecated public VoxelShape getShape(BlockState p_220053_1_, IBlockReader p_220053_2_, BlockPos p_220053_3_, ISelectionContext p_220053_4_) Deprecated. -
getCollisionShape
@Deprecated public VoxelShape getCollisionShape(BlockState p_220071_1_, IBlockReader p_220071_2_, BlockPos p_220071_3_, ISelectionContext p_220071_4_) Deprecated. -
getVisualShape
@Deprecated public VoxelShape getVisualShape(BlockState p_230322_1_, IBlockReader p_230322_2_, BlockPos p_230322_3_, ISelectionContext p_230322_4_) Deprecated. -
randomTick
@Deprecated public void randomTick(BlockState p_225542_1_, ServerWorld p_225542_2_, BlockPos p_225542_3_, Random p_225542_4_) Deprecated. -
tick
@Deprecated public void tick(BlockState p_225534_1_, ServerWorld p_225534_2_, BlockPos p_225534_3_, Random p_225534_4_) Deprecated. -
getDestroyProgress
@Deprecated public float getDestroyProgress(BlockState p_180647_1_, PlayerEntity p_180647_2_, IBlockReader p_180647_3_, BlockPos p_180647_4_) Deprecated. -
spawnAfterBreak
@Deprecated public void spawnAfterBreak(BlockState p_220062_1_, ServerWorld p_220062_2_, BlockPos p_220062_3_, ItemStack p_220062_4_) Deprecated. -
attack
@Deprecated public void attack(BlockState p_196270_1_, World p_196270_2_, BlockPos p_196270_3_, PlayerEntity p_196270_4_) Deprecated. -
getSignal
@Deprecated public int getSignal(BlockState p_180656_1_, IBlockReader p_180656_2_, BlockPos p_180656_3_, Direction p_180656_4_) Deprecated. -
entityInside
@Deprecated public void entityInside(BlockState p_196262_1_, World p_196262_2_, BlockPos p_196262_3_, Entity p_196262_4_) Deprecated. -
getDirectSignal
@Deprecated public int getDirectSignal(BlockState p_176211_1_, IBlockReader p_176211_2_, BlockPos p_176211_3_, Direction p_176211_4_) Deprecated. -
isEntityBlock
Deprecated. -
getLootTable
-
onProjectileHit
@Deprecated public void onProjectileHit(World p_220066_1_, BlockState p_220066_2_, BlockRayTraceResult p_220066_3_, ProjectileEntity p_220066_4_) Deprecated. -
asItem
-
asBlock
-
defaultMaterialColor
-
isAir
-