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 official cnz
intermediary net/minecraft/class_5540
named net/minecraft/block/AbstractCandleBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroup
Nested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.Offsetter, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
-
Field Summary
Fields inherited from class net.minecraft.block.Block
field_31022, field_31023, field_31024, field_31025, field_31035, FORCE_STATE, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, SKIP_LIGHTING_UPDATES, STATE_IDS, stateManager
Fields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, material, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, velocityMultiplier
Fields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
extinguish
(@Nullable PlayerEntity player, BlockState state, WorldAccess world, BlockPos pos) getParticleOffsets
(BlockState state) static boolean
isLitCandle
(BlockState state) protected boolean
isNotLit
(BlockState state) void
onProjectileHit
(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) Called when aProjectileEntity
hits a block.void
randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.private static void
setLit
(WorldAccess world, BlockState state, BlockPos pos, boolean lit) private static void
spawnCandleParticles
(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, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getPlacementState, getRawIdFromState, getRegistryEntry, getShapesForStates, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getStateWithProperties, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, isTransparent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toString
Methods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canPlaceAt, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getLootTableId, getMaxHorizontalModelOffset, getOpacity, getOutlineShape, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getRequiredFeatures, getSidesShape, getStateForNeighborUpdate, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, hasSidedTransparency, isCullingShapeFullCube, isShapeFullCube, isSideInvisible, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, randomTick, rotate, scheduledTick
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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 official a
Lcnz;a:I
intermediary field_30987
Lnet/minecraft/class_5540;field_30987:I
named field_30987
Lnet/minecraft/block/AbstractCandleBlock;field_30987:I
-
LIT
- Mappings:
Namespace Name Mixin selector official b
Lcnz;b:Ldci;
intermediary field_27083
Lnet/minecraft/class_5540;field_27083:Lnet/minecraft/class_2746;
named LIT
Lnet/minecraft/block/AbstractCandleBlock;LIT:Lnet/minecraft/state/property/BooleanProperty;
-
-
Constructor Details
-
AbstractCandleBlock
- Mappings:
Namespace Name Mixin selector official <init>
Ldbp;<init>(Ldbp$d;)V
intermediary <init>
Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)V
named <init>
Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
-
-
Method Details
-
getParticleOffsets
- Mappings:
Namespace Name Mixin selector official a
Lcnz;a(Ldbq;)Ljava/lang/Iterable;
intermediary method_31613
Lnet/minecraft/class_5540;method_31613(Lnet/minecraft/class_2680;)Ljava/lang/Iterable;
named getParticleOffsets
Lnet/minecraft/block/AbstractCandleBlock;getParticleOffsets(Lnet/minecraft/block/BlockState;)Ljava/lang/Iterable;
-
isLitCandle
- Mappings:
Namespace Name Mixin selector official b
Lcnz;b(Ldbq;)Z
intermediary method_35245
Lnet/minecraft/class_5540;method_35245(Lnet/minecraft/class_2680;)Z
named isLitCandle
Lnet/minecraft/block/AbstractCandleBlock;isLitCandle(Lnet/minecraft/block/BlockState;)Z
-
onProjectileHit
public void onProjectileHit(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) Called when aProjectileEntity
hits 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:
TargetBlock
activates.BellBlock
rings.LightningRodBlock
spawns a lightning.AbstractCandleBlock
lights on fire when hit by a projectile on fire.
- Overrides:
onProjectileHit
in classAbstractBlock
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Ldbp;a(Lcmi;Ldbq;Leda;Lbze;)V
intermediary method_19286
Lnet/minecraft/class_4970;method_19286(Lnet/minecraft/class_1937;Lnet/minecraft/class_2680;Lnet/minecraft/class_3965;Lnet/minecraft/class_1676;)V
named onProjectileHit
Lnet/minecraft/block/AbstractBlock;onProjectileHit(Lnet/minecraft/world/World;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/hit/BlockHitResult;Lnet/minecraft/entity/projectile/ProjectileEntity;)V
-
isNotLit
- Mappings:
Namespace Name Mixin selector official c
Lcnz;c(Ldbq;)Z
intermediary method_35246
Lnet/minecraft/class_5540;method_35246(Lnet/minecraft/class_2680;)Z
named isNotLit
Lnet/minecraft/block/AbstractCandleBlock;isNotLit(Lnet/minecraft/block/BlockState;)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:
randomDisplayTick
in classBlock
- Mappings:
Namespace Name Mixin selector official a
Lcpi;a(Ldbq;Lcmi;Lgt;Lapo;)V
intermediary method_9496
Lnet/minecraft/class_2248;method_9496(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)V
named randomDisplayTick
Lnet/minecraft/block/Block;randomDisplayTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)V
-
spawnCandleParticles
- Mappings:
Namespace Name Mixin selector official a
Lcnz;a(Lcmi;Lede;Lapo;)V
intermediary method_31610
Lnet/minecraft/class_5540;method_31610(Lnet/minecraft/class_1937;Lnet/minecraft/class_243;Lnet/minecraft/class_5819;)V
named spawnCandleParticles
Lnet/minecraft/block/AbstractCandleBlock;spawnCandleParticles(Lnet/minecraft/world/World;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/random/Random;)V
-
extinguish
public static void extinguish(@Nullable @Nullable PlayerEntity player, BlockState state, WorldAccess world, BlockPos pos) - Mappings:
Namespace Name Mixin selector official a
Lcnz;a(Lbym;Ldbq;Lcmj;Lgt;)V
intermediary method_31614
Lnet/minecraft/class_5540;method_31614(Lnet/minecraft/class_1657;Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;)V
named extinguish
Lnet/minecraft/block/AbstractCandleBlock;extinguish(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;)V
-
setLit
- Mappings:
Namespace Name Mixin selector official a
Lcnz;a(Lcmj;Ldbq;Lgt;Z)V
intermediary method_31612
Lnet/minecraft/class_5540;method_31612(Lnet/minecraft/class_1936;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Z)V
named setLit
Lnet/minecraft/block/AbstractCandleBlock;setLit(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Z)V
-