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 class
AbstractBlock.AbstractBlockState
static interface
AbstractBlock.IExtendedPositionPredicate<A>
static interface
AbstractBlock.IPositionPredicate
static class
AbstractBlock.OffsetType
static class
AbstractBlock.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 ResourceLocation
drops
protected boolean
dynamicShape
protected float
explosionResistance
protected float
friction
protected boolean
hasCollision
protected boolean
isRandomlyTicking
protected float
jumpFactor
private java.util.function.Supplier<ResourceLocation>
lootTableSupplier
protected Material
material
protected AbstractBlock.Properties
properties
protected SoundType
soundType
protected float
speedFactor
protected 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 Block
asBlock()
abstract Item
asItem()
void
attack(BlockState p_196270_1_, World p_196270_2_, BlockPos p_196270_3_, PlayerEntity p_196270_4_)
Deprecated.boolean
canBeReplaced(BlockState p_225541_1_, Fluid p_225541_2_)
Deprecated.boolean
canBeReplaced(BlockState p_196253_1_, BlockItemUseContext p_196253_2_)
Deprecated.boolean
canSurvive(BlockState p_196260_1_, IWorldReader p_196260_2_, BlockPos p_196260_3_)
Deprecated.MaterialColor
defaultMaterialColor()
void
entityInside(BlockState p_196262_1_, World p_196262_2_, BlockPos p_196262_3_, Entity p_196262_4_)
Deprecated.int
getAnalogOutputSignal(BlockState p_180641_1_, World p_180641_2_, BlockPos p_180641_3_)
Deprecated.VoxelShape
getBlockSupportShape(BlockState p_230335_1_, IBlockReader p_230335_2_, BlockPos p_230335_3_)
Deprecated.VoxelShape
getCollisionShape(BlockState p_220071_1_, IBlockReader p_220071_2_, BlockPos p_220071_3_, ISelectionContext p_220071_4_)
Deprecated.float
getDestroyProgress(BlockState p_180647_1_, PlayerEntity p_180647_2_, IBlockReader p_180647_3_, BlockPos p_180647_4_)
Deprecated.int
getDirectSignal(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.FluidState
getFluidState(BlockState p_204507_1_)
Deprecated.VoxelShape
getInteractionShape(BlockState p_199600_1_, IBlockReader p_199600_2_, BlockPos p_199600_3_)
Deprecated.int
getLightBlock(BlockState p_200011_1_, IBlockReader p_200011_2_, BlockPos p_200011_3_)
Deprecated.ResourceLocation
getLootTable()
INamedContainerProvider
getMenuProvider(BlockState p_220052_1_, World p_220052_2_, BlockPos p_220052_3_)
Deprecated.VoxelShape
getOcclusionShape(BlockState p_196247_1_, IBlockReader p_196247_2_, BlockPos p_196247_3_)
Deprecated.AbstractBlock.OffsetType
getOffsetType()
PushReaction
getPistonPushReaction(BlockState p_149656_1_)
Deprecated.BlockRenderType
getRenderShape(BlockState p_149645_1_)
Deprecated.long
getSeed(BlockState p_209900_1_, BlockPos p_209900_2_)
Deprecated.float
getShadeBrightness(BlockState p_220080_1_, IBlockReader p_220080_2_, BlockPos p_220080_3_)
Deprecated.VoxelShape
getShape(BlockState p_220053_1_, IBlockReader p_220053_2_, BlockPos p_220053_3_, ISelectionContext p_220053_4_)
Deprecated.int
getSignal(BlockState p_180656_1_, IBlockReader p_180656_2_, BlockPos p_180656_3_, Direction p_180656_4_)
Deprecated.VoxelShape
getVisualShape(BlockState p_230322_1_, IBlockReader p_230322_2_, BlockPos p_230322_3_, ISelectionContext p_230322_4_)
Deprecated.boolean
hasAnalogOutputSignal(BlockState p_149740_1_)
Deprecated.protected boolean
isAir(BlockState state)
boolean
isEntityBlock()
Deprecated.boolean
isPathfindable(BlockState p_196266_1_, IBlockReader p_196266_2_, BlockPos p_196266_3_, PathType p_196266_4_)
Deprecated.boolean
isSignalSource(BlockState p_149744_1_)
Deprecated.BlockState
mirror(BlockState p_185471_1_, Mirror p_185471_2_)
Deprecated.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.void
onPlace(BlockState p_220082_1_, World p_220082_2_, BlockPos p_220082_3_, BlockState p_220082_4_, boolean p_220082_5_)
Deprecated.void
onProjectileHit(World p_220066_1_, BlockState p_220066_2_, BlockRayTraceResult p_220066_3_, ProjectileEntity p_220066_4_)
Deprecated.void
onRemove(BlockState p_196243_1_, World p_196243_2_, BlockPos p_196243_3_, BlockState p_196243_4_, boolean p_196243_5_)
Deprecated.void
randomTick(BlockState p_225542_1_, ServerWorld p_225542_2_, BlockPos p_225542_3_, java.util.Random p_225542_4_)
Deprecated.BlockState
rotate(BlockState p_185499_1_, Rotation p_185499_2_)
Deprecated.boolean
skipRendering(BlockState p_200122_1_, BlockState p_200122_2_, Direction p_200122_3_)
Deprecated.void
spawnAfterBreak(BlockState p_220062_1_, ServerWorld p_220062_2_, BlockPos p_220062_3_, ItemStack p_220062_4_)
Deprecated.void
tick(BlockState p_225534_1_, ServerWorld p_225534_2_, BlockPos p_225534_3_, java.util.Random p_225534_4_)
Deprecated.boolean
triggerEvent(BlockState p_189539_1_, World p_189539_2_, BlockPos p_189539_3_, int p_189539_4_, int p_189539_5_)
Deprecated.void
updateIndirectNeighbourShapes(BlockState p_196248_1_, IWorld p_196248_2_, BlockPos p_196248_3_, int p_196248_4_, int p_196248_5_)
Deprecated.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.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.boolean
useShapeForLightOcclusion(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)
-
-