public class RedstoneOreBlock extends Block
Block.RenderSideCacheKey
AbstractBlock.AbstractBlockState, AbstractBlock.IExtendedPositionPredicate<A>, AbstractBlock.IPositionPredicate, AbstractBlock.OffsetType, AbstractBlock.Properties
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
Modifier and Type | Field and Description |
---|---|
static BooleanProperty |
LIT |
BLOCK_STATE_REGISTRY, LOGGER, RANDOM, stateDefinition
drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, material, properties, soundType, speedFactor, UPDATE_SHAPE_ORDER
delegate
Constructor and Description |
---|
RedstoneOreBlock(AbstractBlock.Properties p_i48345_1_) |
Modifier and Type | Method and Description |
---|---|
void |
animateTick(BlockState p_180655_1_,
World p_180655_2_,
BlockPos p_180655_3_,
java.util.Random p_180655_4_) |
void |
attack(BlockState p_196270_1_,
World p_196270_2_,
BlockPos p_196270_3_,
PlayerEntity p_196270_4_) |
protected void |
createBlockStateDefinition(StateContainer.Builder<Block,BlockState> p_206840_1_) |
int |
getExpDrop(BlockState state,
IWorldReader world,
BlockPos pos,
int fortune,
int silktouch)
Gathers how much experience this block drops when broken.
|
private static void |
interact(BlockState p_196500_0_,
World p_196500_1_,
BlockPos p_196500_2_) |
boolean |
isRandomlyTicking(BlockState p_149653_1_) |
void |
randomTick(BlockState p_225542_1_,
ServerWorld p_225542_2_,
BlockPos p_225542_3_,
java.util.Random p_225542_4_) |
void |
spawnAfterBreak(BlockState p_220062_1_,
ServerWorld p_220062_2_,
BlockPos p_220062_3_,
ItemStack p_220062_4_) |
private static void |
spawnParticles(World p_180691_0_,
BlockPos p_180691_1_) |
void |
stepOn(World p_176199_1_,
BlockPos p_176199_2_,
Entity p_176199_3_) |
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_) |
appendHoverText, asBlock, asItem, box, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, fallOn, fillItemCategory, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getHarvestLevel, getHarvestTool, getId, getJumpFactor, getName, getSoundType, getSpeedFactor, getStateDefinition, getStateForPlacement, getTags, handleRain, hasDynamicShape, is, is, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, stateById, toString, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded
canBeReplaced, canBeReplaced, canSurvive, defaultMaterialColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMenuProvider, getOcclusionShape, getOffsetType, getPistonPushReaction, getRenderShape, getSeed, getShadeBrightness, getShape, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isEntityBlock, isPathfindable, isSignalSource, mirror, neighborChanged, onPlace, onProjectileHit, onRemove, rotate, skipRendering, tick, triggerEvent, updateIndirectNeighbourShapes, updateShape, useShapeForLightOcclusion
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, catchFire, collisionExtendsVertically, createTileEntity, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, 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, shouldDisplayFluidOverlay
public static final BooleanProperty LIT
public RedstoneOreBlock(AbstractBlock.Properties p_i48345_1_)
public void attack(BlockState p_196270_1_, World p_196270_2_, BlockPos p_196270_3_, PlayerEntity p_196270_4_)
attack
in class AbstractBlock
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_)
use
in class AbstractBlock
private static void interact(BlockState p_196500_0_, World p_196500_1_, BlockPos p_196500_2_)
public boolean isRandomlyTicking(BlockState p_149653_1_)
isRandomlyTicking
in class Block
public void randomTick(BlockState p_225542_1_, ServerWorld p_225542_2_, BlockPos p_225542_3_, java.util.Random p_225542_4_)
randomTick
in class AbstractBlock
public void spawnAfterBreak(BlockState p_220062_1_, ServerWorld p_220062_2_, BlockPos p_220062_3_, ItemStack p_220062_4_)
spawnAfterBreak
in class AbstractBlock
public int getExpDrop(BlockState state, IWorldReader world, BlockPos pos, int fortune, int silktouch)
IForgeBlock
state
- The current stateworld
- The worldpos
- Block positionpublic void animateTick(BlockState p_180655_1_, World p_180655_2_, BlockPos p_180655_3_, java.util.Random p_180655_4_)
animateTick
in class Block
protected void createBlockStateDefinition(StateContainer.Builder<Block,BlockState> p_206840_1_)
createBlockStateDefinition
in class Block