Package net.minecraft.block
Class AbstractBlock
- java.lang.Object
-
- net.minecraftforge.registries.ForgeRegistryEntry<Block>
-
- net.minecraft.block.AbstractBlock
-
- All Implemented Interfaces:
IForgeRegistryEntry<Block>
- Direct Known Subclasses:
Block
public abstract class AbstractBlock extends ForgeRegistryEntry<Block>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractBlock.AbstractBlockStatestatic interfaceAbstractBlock.IExtendedPositionPredicate<A>static interfaceAbstractBlock.IPositionPredicatestatic classAbstractBlock.OffsetTypestatic classAbstractBlock.Properties-
Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
-
-
Field Summary
Fields Modifier and Type Field Description protected ResourceLocationdropsprotected booleandynamicShapeprotected floatexplosionResistanceprotected floatfrictionprotected booleanhasCollisionprotected booleanisRandomlyTickingprotected floatjumpFactorprivate java.util.function.Supplier<ResourceLocation>lootTableSupplierprotected Materialmaterialprotected AbstractBlock.Propertiespropertiesprotected SoundTypesoundTypeprotected floatspeedFactorprotected static Direction[]UPDATE_SHAPE_ORDER-
Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate
-
-
Constructor Summary
Constructors Constructor Description AbstractBlock(AbstractBlock.Properties p_i241196_1_)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected 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.MaterialColordefaultMaterialColor()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.VoxelShapegetBlockSupportShape(BlockState p_230335_1_, IBlockReader p_230335_2_, BlockPos p_230335_3_)Deprecated.VoxelShapegetCollisionShape(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.java.util.List<ItemStack>getDrops(BlockState p_220076_1_, LootContext.Builder p_220076_2_)Deprecated.FluidStategetFluidState(BlockState p_204507_1_)Deprecated.VoxelShapegetInteractionShape(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.ResourceLocationgetLootTable()INamedContainerProvidergetMenuProvider(BlockState p_220052_1_, World p_220052_2_, BlockPos p_220052_3_)Deprecated.VoxelShapegetOcclusionShape(BlockState p_196247_1_, IBlockReader p_196247_2_, BlockPos p_196247_3_)Deprecated.AbstractBlock.OffsetTypegetOffsetType()PushReactiongetPistonPushReaction(BlockState p_149656_1_)Deprecated.BlockRenderTypegetRenderShape(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.VoxelShapegetShape(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.VoxelShapegetVisualShape(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)booleanisEntityBlock()Deprecated.booleanisPathfindable(BlockState p_196266_1_, IBlockReader p_196266_2_, BlockPos p_196266_3_, PathType p_196266_4_)Deprecated.booleanisSignalSource(BlockState p_149744_1_)Deprecated.BlockStatemirror(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_, java.util.Random p_225542_4_)Deprecated.BlockStaterotate(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_, java.util.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.BlockStateupdateShape(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.ActionResultTypeuse(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 Detail
-
UPDATE_SHAPE_ORDER
protected static final Direction[] UPDATE_SHAPE_ORDER
-
material
protected final Material material
-
hasCollision
protected final boolean hasCollision
-
explosionResistance
protected final float explosionResistance
-
isRandomlyTicking
protected final boolean isRandomlyTicking
-
soundType
protected final SoundType soundType
-
friction
protected final float friction
-
speedFactor
protected final float speedFactor
-
jumpFactor
protected final float jumpFactor
-
dynamicShape
protected final boolean dynamicShape
-
properties
protected final AbstractBlock.Properties properties
-
drops
@Nullable protected ResourceLocation drops
-
lootTableSupplier
private final java.util.function.Supplier<ResourceLocation> lootTableSupplier
-
-
Constructor Detail
-
AbstractBlock
public AbstractBlock(AbstractBlock.Properties p_i241196_1_)
-
-
Method Detail
-
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 public BlockRenderType getRenderShape(BlockState p_149645_1_)
Deprecated.
-
useShapeForLightOcclusion
@Deprecated public boolean useShapeForLightOcclusion(BlockState p_220074_1_)
Deprecated.
-
isSignalSource
@Deprecated public boolean isSignalSource(BlockState p_149744_1_)
Deprecated.
-
getPistonPushReaction
@Deprecated public PushReaction getPistonPushReaction(BlockState p_149656_1_)
Deprecated.
-
getFluidState
@Deprecated public FluidState getFluidState(BlockState p_204507_1_)
Deprecated.
-
hasAnalogOutputSignal
@Deprecated public boolean hasAnalogOutputSignal(BlockState p_149740_1_)
Deprecated.
-
getOffsetType
public AbstractBlock.OffsetType getOffsetType()
-
rotate
@Deprecated public BlockState rotate(BlockState p_185499_1_, Rotation p_185499_2_)
Deprecated.
-
mirror
@Deprecated public BlockState mirror(BlockState p_185471_1_, Mirror p_185471_2_)
Deprecated.
-
canBeReplaced
@Deprecated public boolean canBeReplaced(BlockState p_196253_1_, BlockItemUseContext p_196253_2_)
Deprecated.
-
canBeReplaced
@Deprecated public boolean canBeReplaced(BlockState p_225541_1_, Fluid p_225541_2_)
Deprecated.
-
getDrops
@Deprecated public java.util.List<ItemStack> getDrops(BlockState p_220076_1_, LootContext.Builder p_220076_2_)
Deprecated.
-
getSeed
@Deprecated public long getSeed(BlockState p_209900_1_, BlockPos p_209900_2_)
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_, java.util.Random p_225542_4_)
Deprecated.
-
tick
@Deprecated public void tick(BlockState p_225534_1_, ServerWorld p_225534_2_, BlockPos p_225534_3_, java.util.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 public final boolean isEntityBlock()
Deprecated.
-
getLootTable
public final ResourceLocation getLootTable()
-
onProjectileHit
@Deprecated public void onProjectileHit(World p_220066_1_, BlockState p_220066_2_, BlockRayTraceResult p_220066_3_, ProjectileEntity p_220066_4_)
Deprecated.
-
asItem
public abstract Item asItem()
-
asBlock
protected abstract Block asBlock()
-
defaultMaterialColor
public MaterialColor defaultMaterialColor()
-
isAir
protected boolean isAir(BlockState state)
-
-