Class CandleCakeBlock
- All Implemented Interfaces:
- ItemConvertible,- ToggleableFeature
- Mappings:
- Namespace - Name - named - net/minecraft/block/CandleCakeBlock- intermediary - net/minecraft/class_5545- official - dke
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.block.AbstractBlockAbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.Offsetter, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static final VoxelShapeprivate final CandleBlockprotected static final VoxelShapeprivate static final Map<CandleBlock, CandleCakeBlock> static final com.mojang.serialization.MapCodec<CandleCakeBlock> protected static final floatstatic final BooleanPropertyprotected static final VoxelShapeFields inherited from class net.minecraft.block.AbstractCandleBlockfield_30987Fields inherited from class net.minecraft.block.Blockfield_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, SKIP_REDSTONE_WIRE_STATE_REPLACEMENT, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlockcollidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableKey, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, translationKey, velocityMultiplierFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeatureFEATURE_ENABLED_REGISTRY_KEYS
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedCandleCakeBlock(Block candle, AbstractBlock.Settings settings) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidappendProperties(StateManager.Builder<Block, BlockState> builder) Appends block state properties to this block.static booleancanBeLit(BlockState state) protected booleancanPathfindThrough(BlockState state, NavigationType type) Returns if an entity using navigation typetypecan navigate through this block.protected booleancanPlaceAt(BlockState state, WorldView world, BlockPos pos) Returns whether the block can be placed atpos.static BlockStategetCandleCakeFromCandle(CandleBlock candle) com.mojang.serialization.MapCodec<CandleCakeBlock> getCodec()protected intgetComparatorOutput(BlockState state, World world, BlockPos pos) Returns the comparator output of the block, from0to15.protected VoxelShapegetOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) getParticleOffsets(BlockState state) protected ItemStackgetPickStack(WorldView world, BlockPos pos, BlockState state, boolean includeData) protected BlockStategetStateForNeighborUpdate(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.protected booleanhasComparatorOutput(BlockState state) Returns whether the block can have a comparator output.private static booleanisHittingCandle(BlockHitResult hitResult) protected ActionResultonUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultonUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Methods inherited from class net.minecraft.block.AbstractCandleBlockextinguish, isLitCandle, isNotLit, onExploded, onProjectileHit, randomDisplayTickMethods inherited from class net.minecraft.block.BlockafterBreak, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPlacementState, getRawIdFromState, getRegistryEntry, getShapesForStates, getSlipperiness, getStateFromRawId, getStateManager, getStateWithProperties, 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.AbstractBlockcalcBlockBreakingDelta, canBucketPlace, canReplace, createCodec, createScreenHandlerFactory, createSettingsCodec, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getInsideCollisionShape, getLootTableKey, getMaxHorizontalModelOffset, getOpacity, getRaycastShape, getRenderingSeed, getRenderType, getRequiredFeatures, getSettings, getSidesShape, getSoundGroup, getStrongRedstonePower, getTranslationKey, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasRandomTicks, hasSidedTransparency, isShapeFullCube, isSideInvisible, isTransparent, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onStacksDropped, onStateReplaced, onSyncedBlockEvent, prepare, randomTick, rotate, scheduledTickMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeatureisEnabled
- 
Field Details- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/block/CandleCakeBlock;CODEC:Lcom/mojang/serialization/MapCodec;- intermediary - field_46299- Lnet/minecraft/class_5545;field_46299:Lcom/mojang/serialization/MapCodec;- official - c- Ldke;c:Lcom/mojang/serialization/MapCodec;
 
- 
LIT- Mappings:
- Namespace - Name - Mixin selector - named - LIT- Lnet/minecraft/block/CandleCakeBlock;LIT:Lnet/minecraft/state/property/BooleanProperty;- intermediary - field_27183- Lnet/minecraft/class_5545;field_27183:Lnet/minecraft/class_2746;- official - d- Ldke;d:Ldxp;
 
- 
field_31052protected static final float field_31052- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_31052- Lnet/minecraft/block/CandleCakeBlock;field_31052:F- intermediary - field_31052- Lnet/minecraft/class_5545;field_31052:F- official - e- Ldke;e:F
 
- 
CAKE_SHAPE- Mappings:
- Namespace - Name - Mixin selector - named - CAKE_SHAPE- Lnet/minecraft/block/CandleCakeBlock;CAKE_SHAPE:Lnet/minecraft/util/shape/VoxelShape;- intermediary - field_27184- Lnet/minecraft/class_5545;field_27184:Lnet/minecraft/class_265;- official - f- Ldke;f:Lfbv;
 
- 
CANDLE_SHAPE- Mappings:
- Namespace - Name - Mixin selector - named - CANDLE_SHAPE- Lnet/minecraft/block/CandleCakeBlock;CANDLE_SHAPE:Lnet/minecraft/util/shape/VoxelShape;- intermediary - field_27185- Lnet/minecraft/class_5545;field_27185:Lnet/minecraft/class_265;- official - g- Ldke;g:Lfbv;
 
- 
SHAPE- Mappings:
- Namespace - Name - Mixin selector - named - SHAPE- Lnet/minecraft/block/CandleCakeBlock;SHAPE:Lnet/minecraft/util/shape/VoxelShape;- intermediary - field_27186- Lnet/minecraft/class_5545;field_27186:Lnet/minecraft/class_265;- official - h- Ldke;h:Lfbv;
 
- 
CANDLES_TO_CANDLE_CAKES- Mappings:
- Namespace - Name - Mixin selector - named - CANDLES_TO_CANDLE_CAKES- Lnet/minecraft/block/CandleCakeBlock;CANDLES_TO_CANDLE_CAKES:Ljava/util/Map;- intermediary - field_27187- Lnet/minecraft/class_5545;field_27187:Ljava/util/Map;- official - i- Ldke;i:Ljava/util/Map;
 
- 
PARTICLE_OFFSETS- Mappings:
- Namespace - Name - Mixin selector - named - PARTICLE_OFFSETS- Lnet/minecraft/block/CandleCakeBlock;PARTICLE_OFFSETS:Ljava/lang/Iterable;- intermediary - field_27188- Lnet/minecraft/class_5545;field_27188:Ljava/lang/Iterable;- official - j- Ldke;j:Ljava/lang/Iterable;
 
- 
candle- Mappings:
- Namespace - Name - Mixin selector - named - candle- Lnet/minecraft/block/CandleCakeBlock;candle:Lnet/minecraft/block/CandleBlock;- intermediary - field_46300- Lnet/minecraft/class_5545;field_46300:Lnet/minecraft/class_5544;- official - k- Ldke;k:Ldkd;
 
 
- 
- 
Constructor Details- 
CandleCakeBlock- Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/block/CandleCakeBlock;<init>(Lnet/minecraft/block/Block;Lnet/minecraft/block/AbstractBlock$Settings;)V- intermediary - <init>- Lnet/minecraft/class_5545;<init>(Lnet/minecraft/class_2248;Lnet/minecraft/class_4970$class_2251;)V- official - <init>- Ldke;<init>(Ldjn;Ldwx$d;)V
 
 
- 
- 
Method Details- 
getCodec- Specified by:
- getCodecin class- AbstractCandleBlock
- Mappings:
- Namespace - Name - Mixin selector - named - getCodec- Lnet/minecraft/block/AbstractBlock;getCodec()Lcom/mojang/serialization/MapCodec;- intermediary - method_53969- Lnet/minecraft/class_4970;method_53969()Lcom/mojang/serialization/MapCodec;- official - a- Ldwx;a()Lcom/mojang/serialization/MapCodec;
 
- 
getParticleOffsets- Specified by:
- getParticleOffsetsin class- AbstractCandleBlock
- Mappings:
- Namespace - Name - Mixin selector - named - getParticleOffsets- Lnet/minecraft/block/AbstractCandleBlock;getParticleOffsets(Lnet/minecraft/block/BlockState;)Ljava/lang/Iterable;- intermediary - method_31613- Lnet/minecraft/class_5540;method_31613(Lnet/minecraft/class_2680;)Ljava/lang/Iterable;- official - b- Ldif;b(Ldwy;)Ljava/lang/Iterable;
 
- 
getOutlineShapeprotected VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) - Overrides:
- getOutlineShapein class- AbstractBlock
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - getOutlineShape- Lnet/minecraft/block/AbstractBlock;getOutlineShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Lnet/minecraft/util/shape/VoxelShape;- intermediary - method_9530- Lnet/minecraft/class_4970;method_9530(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Lnet/minecraft/class_265;- official - a- Ldwx;a(Ldwy;Ldfo;Lji;Lfbg;)Lfbv;
 
- 
onUseWithItemprotected ActionResult onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) - Overrides:
- onUseWithItemin class- AbstractBlock
- Mappings:
- Namespace - Name - Mixin selector - named - onUseWithItem- Lnet/minecraft/block/AbstractBlock;onUseWithItem(Lnet/minecraft/item/ItemStack;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/util/hit/BlockHitResult;)Lnet/minecraft/util/ActionResult;- intermediary - method_55765- Lnet/minecraft/class_4970;method_55765(Lnet/minecraft/class_1799;Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_3965;)Lnet/minecraft/class_1269;- official - a- Ldwx;a(Lcwq;Ldwy;Ldgj;Lji;Lcoy;Lbsk;Lfax;)Lbsl;
 
- 
onUseprotected ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) - Overrides:
- onUsein class- AbstractBlock
- Mappings:
- Namespace - Name - Mixin selector - named - onUse- Lnet/minecraft/block/AbstractBlock;onUse(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/hit/BlockHitResult;)Lnet/minecraft/util/ActionResult;- intermediary - method_55766- Lnet/minecraft/class_4970;method_55766(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_3965;)Lnet/minecraft/class_1269;- official - a- Ldwx;a(Ldwy;Ldgj;Lji;Lcoy;Lfax;)Lbsl;
 
- 
isHittingCandle- Mappings:
- Namespace - Name - Mixin selector - named - isHittingCandle- Lnet/minecraft/block/CandleCakeBlock;isHittingCandle(Lnet/minecraft/util/hit/BlockHitResult;)Z- intermediary - method_31634- Lnet/minecraft/class_5545;method_31634(Lnet/minecraft/class_3965;)Z- official - a- Ldke;a(Lfax;)Z
 
- 
appendPropertiesAppends block state properties to this block. To use this, override and callStateManager.Builder.add(net.minecraft.state.property.Property<?>[])inside the method. SeePropertiesfor the list of pre-defined properties.- Overrides:
- appendPropertiesin class- Block
- Mappings:
- Namespace - Name - Mixin selector - named - appendProperties- Lnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V- intermediary - method_9515- Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)V- official - a- Ldjn;a(Ldwz$a;)V
 
- 
getPickStackprotected ItemStack getPickStack(WorldView world, BlockPos pos, BlockState state, boolean includeData) - Overrides:
- getPickStackin class- AbstractBlock
- Mappings:
- Namespace - Name - Mixin selector - named - getPickStack- Lnet/minecraft/block/AbstractBlock;getPickStack(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)Lnet/minecraft/item/ItemStack;- intermediary - method_9574- Lnet/minecraft/class_4970;method_9574(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)Lnet/minecraft/class_1799;- official - a- Ldwx;a(Ldgm;Lji;Ldwy;Z)Lcwq;
 
- 
getStateForNeighborUpdateprotected BlockState getStateForNeighborUpdate(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random) Returns the state of the block after a neighboring block's state change.Returning Blocks.AIRbreaks the block. This is useful to implement supporting block requirement for blocks (if used along withcanPlaceAt(net.minecraft.block.BlockState, net.minecraft.world.WorldView, net.minecraft.util.math.BlockPos)).Side effects like activating a redstone component (but not scheduling a tick) should be performed in AbstractBlock.neighborUpdate(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.Block, net.minecraft.world.block.WireOrientation, boolean)instead. If the block supports waterlogging and currently has water, this method should be overridden to tick the fluid at the block's position.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. This is not called ifBlock.FORCE_STATEflag is set in thesetBlockStatecall.This method can be used for multiple purposes. Here are some examples: - FenceBlockuses it to update the fence's connection when a horizontally neighboring block's state is changed.
- PlantBlockuses it to break the plant if the state change causes it to lose its supporting block.
- DoorBlockuses it to copy the state of the other half of the door.
- SlabBlockuses it to schedule the fluid to tick if waterlogged.
- SoulSandBlockuses it to schedule the water block above to tick so that it becomes a bubble column.
- FallingBlockuses it to schedule the block to tick so that it can fall if needed.
 - Overrides:
- getStateForNeighborUpdatein class- AbstractBlock
- Parameters:
- state- the state of this block
- world- the world
- pos- the position of this block
- direction- the direction from this block to the neighbor
- neighborPos- the position of the neighbor block
- neighborState- the state of the updated neighbor block
- Returns:
- the state of the block after a neighboring block's state change
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - getStateForNeighborUpdate- Lnet/minecraft/block/AbstractBlock;getStateForNeighborUpdate(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldView;Lnet/minecraft/world/tick/ScheduledTickView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/block/BlockState;- intermediary - method_9559- Lnet/minecraft/class_4970;method_9559(Lnet/minecraft/class_2680;Lnet/minecraft/class_4538;Lnet/minecraft/class_10225;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_5819;)Lnet/minecraft/class_2680;- official - a- Ldwx;a(Ldwy;Ldgm;Ldgy;Lji;Ljn;Lji;Ldwy;Lazh;)Ldwy;
 
- 
canPlaceAtReturns whether the block can be placed atpos.Blocks with supporting block requirements should override this method. Note that this should also be checked manually during getStateForNeighborUpdate(net.minecraft.block.BlockState, net.minecraft.world.WorldView, net.minecraft.world.tick.ScheduledTickView, net.minecraft.util.math.BlockPos, net.minecraft.util.math.Direction, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState, net.minecraft.util.math.random.Random)in order to break the block that lost its supporting block.This is only checked during the use of block items or by endermen, falling blocks, etc that can place blocks. This does not affect block state changes performed through World.setBlockState(BlockPos, BlockState)call.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.- Overrides:
- canPlaceAtin class- AbstractBlock
- Returns:
- whether the block can be placed at pos
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - canPlaceAt- Lnet/minecraft/block/AbstractBlock;canPlaceAt(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Z- intermediary - method_9558- Lnet/minecraft/class_4970;method_9558(Lnet/minecraft/class_2680;Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Z- official - a- Ldwx;a(Ldwy;Ldgm;Lji;)Z
 
- 
getComparatorOutputReturns the comparator output of the block, from0to15.When overriding this, hasComparatorOutput(net.minecraft.block.BlockState)must also be overridden.- Overrides:
- getComparatorOutputin class- AbstractBlock
- Returns:
- the comparator output of the block, from 0to15
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - getComparatorOutput- Lnet/minecraft/block/AbstractBlock;getComparatorOutput(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)I- intermediary - method_9572- Lnet/minecraft/class_4970;method_9572(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)I- official - a- Ldwx;a(Ldwy;Ldgj;Lji;)I
 
- 
hasComparatorOutputReturns whether the block can have a comparator output.This does not check the current comparator output of the block. Use getComparatorOutput(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos)in that case.- Overrides:
- hasComparatorOutputin class- AbstractBlock
- Returns:
- whether the block can have a comparator output
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - hasComparatorOutput- Lnet/minecraft/block/AbstractBlock;hasComparatorOutput(Lnet/minecraft/block/BlockState;)Z- intermediary - method_9498- Lnet/minecraft/class_4970;method_9498(Lnet/minecraft/class_2680;)Z- official - c_- Ldwx;c_(Ldwy;)Z
 
- 
getCandleCakeFromCandle- Mappings:
- Namespace - Name - Mixin selector - named - getCandleCakeFromCandle- Lnet/minecraft/block/CandleCakeBlock;getCandleCakeFromCandle(Lnet/minecraft/block/CandleBlock;)Lnet/minecraft/block/BlockState;- intermediary - method_31632- Lnet/minecraft/class_5545;method_31632(Lnet/minecraft/class_5544;)Lnet/minecraft/class_2680;- official - a- Ldke;a(Ldkd;)Ldwy;
 
- 
canBeLit- Mappings:
- Namespace - Name - Mixin selector - named - canBeLit- Lnet/minecraft/block/CandleCakeBlock;canBeLit(Lnet/minecraft/block/BlockState;)Z- intermediary - method_31635- Lnet/minecraft/class_5545;method_31635(Lnet/minecraft/class_2680;)Z- official - h- Ldke;h(Ldwy;)Z
 
 
-