Package net.minecraft.block
Class AbstractCandleBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.AbstractCandleBlock
- All Implemented Interfaces:
ItemConvertible,ToggleableFeature
- Direct Known Subclasses:
CandleBlock,CandleCakeBlock
- Mappings:
Namespace Name named net/minecraft/block/AbstractCandleBlockintermediary net/minecraft/class_5540official deq
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroupNested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.Offsetter, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A> -
Field Summary
FieldsFields inherited from class net.minecraft.block.Block
CODEC, field_31023, field_31024, field_31025, field_31035, FORCE_STATE, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_ALL_AND_REDRAW, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableKey, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, velocityMultiplierFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidextinguish(@Nullable PlayerEntity player, BlockState state, WorldAccess world, BlockPos pos) protected abstract com.mojang.serialization.MapCodec<? extends AbstractCandleBlock> getCodec()getParticleOffsets(BlockState state) static booleanisLitCandle(BlockState state) protected booleanisNotLit(BlockState state) protected voidonExploded(BlockState state, World world, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> stackMerger) protected voidonProjectileHit(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) Called when aProjectileEntityhits a block.voidrandomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.private static voidsetLit(WorldAccess world, BlockState state, BlockPos pos, boolean lit) private static voidspawnCandleParticles(World world, Vec3d vec3d, Random random) Methods inherited from class net.minecraft.block.Block
afterBreak, appendProperties, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getPlacementState, getRawIdFromState, getRegistryEntry, getShapesForStates, getSlipperiness, getStateFromRawId, getStateManager, getStateWithProperties, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasTopRim, isFaceFullSquare, isShapeFullCube, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toStringMethods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canPlaceAt, canReplace, createCodec, createScreenHandlerFactory, createSettingsCodec, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getLootTableKey, getMaxHorizontalModelOffset, getOpacity, getOutlineShape, getRaycastShape, getRenderingSeed, getRenderType, getRequiredFeatures, getSettings, getSidesShape, getSoundGroup, getStateForNeighborUpdate, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, hasRandomTicks, hasSidedTransparency, isCullingShapeFullCube, isShapeFullCube, isSideInvisible, isTransparent, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, onUseWithItem, prepare, randomTick, rotate, scheduledTickMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
-
Field Details
-
field_30987
public static final int field_30987- See Also:
- Mappings:
Namespace Name Mixin selector named field_30987Lnet/minecraft/block/AbstractCandleBlock;field_30987:Iintermediary field_30987Lnet/minecraft/class_5540;field_30987:Iofficial aLdeq;a:I
-
LIT
- Mappings:
Namespace Name Mixin selector named LITLnet/minecraft/block/AbstractCandleBlock;LIT:Lnet/minecraft/state/property/BooleanProperty;intermediary field_27083Lnet/minecraft/class_5540;field_27083:Lnet/minecraft/class_2746;official bLdeq;b:Ldtt;
-
-
Constructor Details
-
AbstractCandleBlock
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)Vintermediary <init>Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)Vofficial <init>Ldtb;<init>(Ldtb$d;)V
-
-
Method Details
-
getCodec
- Overrides:
getCodecin classBlock- Mappings:
Namespace Name Mixin selector named getCodecLnet/minecraft/block/AbstractBlock;getCodec()Lcom/mojang/serialization/MapCodec;intermediary method_53969Lnet/minecraft/class_4970;method_53969()Lcom/mojang/serialization/MapCodec;official aLdtb;a()Lcom/mojang/serialization/MapCodec;
-
getParticleOffsets
- Mappings:
Namespace Name Mixin selector named getParticleOffsetsLnet/minecraft/block/AbstractCandleBlock;getParticleOffsets(Lnet/minecraft/block/BlockState;)Ljava/lang/Iterable;intermediary method_31613Lnet/minecraft/class_5540;method_31613(Lnet/minecraft/class_2680;)Ljava/lang/Iterable;official bLdeq;b(Ldtc;)Ljava/lang/Iterable;
-
isLitCandle
- Mappings:
Namespace Name Mixin selector named isLitCandleLnet/minecraft/block/AbstractCandleBlock;isLitCandle(Lnet/minecraft/block/BlockState;)Zintermediary method_35245Lnet/minecraft/class_5540;method_35245(Lnet/minecraft/class_2680;)Zofficial cLdeq;c(Ldtc;)Z
-
onProjectileHit
protected void onProjectileHit(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) Called when aProjectileEntityhits a block.This method is called on both the logical client and logical server, so take caution when overriding this method. The logical side can be checked using
World.isClient.Here are some examples:
TargetBlockactivates.BellBlockrings.LightningRodBlockspawns a lightning.AbstractCandleBlocklights on fire when hit by a projectile on fire.
- Overrides:
onProjectileHitin classAbstractBlock- See Also:
- Mappings:
Namespace Name Mixin selector named onProjectileHitLnet/minecraft/block/AbstractBlock;onProjectileHit(Lnet/minecraft/world/World;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/hit/BlockHitResult;Lnet/minecraft/entity/projectile/ProjectileEntity;)Vintermediary method_19286Lnet/minecraft/class_4970;method_19286(Lnet/minecraft/class_1937;Lnet/minecraft/class_2680;Lnet/minecraft/class_3965;Lnet/minecraft/class_1676;)Vofficial aLdtb;a(Ldcw;Ldtc;Lewy;Lcnp;)V
-
isNotLit
- Mappings:
Namespace Name Mixin selector named isNotLitLnet/minecraft/block/AbstractCandleBlock;isNotLit(Lnet/minecraft/block/BlockState;)Zintermediary method_35246Lnet/minecraft/class_5540;method_35246(Lnet/minecraft/class_2680;)Zofficial dLdeq;d(Ldtc;)Z
-
randomDisplayTick
Called randomly on the client. Blocks may override this to spawn particles. UnlikeAbstractBlock.randomTick(net.minecraft.block.BlockState, net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos, net.minecraft.util.math.random.Random)this is not affected by a game rule.- Overrides:
randomDisplayTickin classBlock- Mappings:
Namespace Name Mixin selector named randomDisplayTickLnet/minecraft/block/Block;randomDisplayTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)Vintermediary method_9496Lnet/minecraft/class_2248;method_9496(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Vofficial aLdfy;a(Ldtc;Ldcw;Ljd;Layw;)V
-
spawnCandleParticles
- Mappings:
Namespace Name Mixin selector named spawnCandleParticlesLnet/minecraft/block/AbstractCandleBlock;spawnCandleParticles(Lnet/minecraft/world/World;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/random/Random;)Vintermediary method_31610Lnet/minecraft/class_5540;method_31610(Lnet/minecraft/class_1937;Lnet/minecraft/class_243;Lnet/minecraft/class_5819;)Vofficial aLdeq;a(Ldcw;Lexc;Layw;)V
-
extinguish
public static void extinguish(@Nullable @Nullable PlayerEntity player, BlockState state, WorldAccess world, BlockPos pos) - Mappings:
Namespace Name Mixin selector named extinguishLnet/minecraft/block/AbstractCandleBlock;extinguish(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;)Vintermediary method_31614Lnet/minecraft/class_5540;method_31614(Lnet/minecraft/class_1657;Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;)Vofficial aLdeq;a(Lcmx;Ldtc;Ldcx;Ljd;)V
-
setLit
- Mappings:
Namespace Name Mixin selector named setLitLnet/minecraft/block/AbstractCandleBlock;setLit(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Z)Vintermediary method_31612Lnet/minecraft/class_5540;method_31612(Lnet/minecraft/class_1936;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Z)Vofficial aLdeq;a(Ldcx;Ldtc;Ljd;Z)V
-
onExploded
protected void onExploded(BlockState state, World world, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> stackMerger) - Overrides:
onExplodedin classAbstractBlock- Mappings:
Namespace Name Mixin selector named onExplodedLnet/minecraft/block/AbstractBlock;onExploded(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/explosion/Explosion;Ljava/util/function/BiConsumer;)Vintermediary method_55124Lnet/minecraft/class_4970;method_55124(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1927;Ljava/util/function/BiConsumer;)Vofficial aLdtb;a(Ldtc;Ldcw;Ljd;Ldco;Ljava/util/function/BiConsumer;)V
-