Package net.minecraft.block
Class TorchBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.AbstractTorchBlock
net.minecraft.block.TorchBlock
- All Implemented Interfaces:
- ItemConvertible,- ToggleableFeature
- Direct Known Subclasses:
- WallTorchBlock
- Mappings:
- Namespace - Name - named - net/minecraft/block/TorchBlock- intermediary - net/minecraft/class_2527- official - dsc
- 
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 TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<TorchBlock> protected final SimpleParticleTypeprotected static final com.mojang.serialization.MapCodec<SimpleParticleType> Fields inherited from class net.minecraft.block.AbstractTorchBlockfield_46270, SHAPEFields 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 SummaryConstructorsModifierConstructorDescriptionprotectedTorchBlock(SimpleParticleType particle, AbstractBlock.Settings settings) 
- 
Method SummaryModifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<? extends TorchBlock> getCodec()voidrandomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.Methods inherited from class net.minecraft.block.AbstractTorchBlockcanPlaceAt, getOutlineShape, getStateForNeighborUpdateMethods inherited from class net.minecraft.block.BlockafterBreak, appendProperties, 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, canPathfindThrough, canReplace, createCodec, createScreenHandlerFactory, createSettingsCodec, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getInsideCollisionShape, getLootTableKey, getMaxHorizontalModelOffset, getOpacity, getPickStack, getRaycastShape, getRenderingSeed, getRenderType, getRequiredFeatures, getSettings, getSidesShape, getSoundGroup, getStrongRedstonePower, getTranslationKey, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, hasRandomTicks, hasSidedTransparency, isShapeFullCube, isSideInvisible, isTransparent, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onExploded, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, onUseWithItem, 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- 
PARTICLE_TYPE_CODEC- Mappings:
- Namespace - Name - Mixin selector - named - PARTICLE_TYPE_CODEC- Lnet/minecraft/block/TorchBlock;PARTICLE_TYPE_CODEC:Lcom/mojang/serialization/MapCodec;- intermediary - field_46475- Lnet/minecraft/class_2527;field_46475:Lcom/mojang/serialization/MapCodec;- official - c- Ldsc;c:Lcom/mojang/serialization/MapCodec;
 
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/block/TorchBlock;CODEC:Lcom/mojang/serialization/MapCodec;- intermediary - field_46476- Lnet/minecraft/class_2527;field_46476:Lcom/mojang/serialization/MapCodec;- official - d- Ldsc;d:Lcom/mojang/serialization/MapCodec;
 
- 
particle- Mappings:
- Namespace - Name - Mixin selector - named - particle- Lnet/minecraft/block/TorchBlock;particle:Lnet/minecraft/particle/SimpleParticleType;- intermediary - field_22155- Lnet/minecraft/class_2527;field_22155:Lnet/minecraft/class_2400;- official - e- Ldsc;e:Llx;
 
 
- 
- 
Constructor Details- 
TorchBlock- Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/block/TorchBlock;<init>(Lnet/minecraft/particle/SimpleParticleType;Lnet/minecraft/block/AbstractBlock$Settings;)V- intermediary - <init>- Lnet/minecraft/class_2527;<init>(Lnet/minecraft/class_2400;Lnet/minecraft/class_4970$class_2251;)V- official - <init>- Ldsc;<init>(Llx;Ldwx$d;)V
 
 
- 
- 
Method Details- 
getCodec- Specified by:
- getCodecin class- AbstractTorchBlock
- 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;
 
- 
randomDisplayTickCalled 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 class- Block
- Mappings:
- Namespace - Name - Mixin selector - 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- 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- official - a- Ldjn;a(Ldwy;Ldgj;Lji;Lazh;)V
 
 
-