Package net.minecraft.block
Class RedstoneTorchBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.TorchBlock
net.minecraft.block.RedstoneTorchBlock
- All Implemented Interfaces:
ItemConvertible
- Direct Known Subclasses:
WallRedstoneTorchBlock
- Mappings:
Namespace Name official cjd
intermediary net/minecraft/class_2459
named net/minecraft/block/RedstoneTorchBlock
-
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.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Map<BlockView,
List<RedstoneTorchBlock.BurnoutEntry>> static final int
static final int
static final int
static final BooleanProperty
private static final int
Fields inherited from class net.minecraft.block.TorchBlock
BOUNDING_SHAPE, field_31265, particle
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, resistance, settings, slipperiness, soundGroup, velocityMultiplier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
appendProperties
(StateManager.Builder<Block, BlockState> builder) boolean
emitsRedstonePower
(BlockState state) int
getStrongRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) int
getWeakRedstonePower
(BlockState state, BlockView world, BlockPos pos, Direction direction) private static boolean
isBurnedOut
(World world, BlockPos pos, boolean addNew) void
neighborUpdate
(BlockState state, World world, BlockPos pos, Block block, BlockPos fromPos, boolean notify) void
onBlockAdded
(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) void
onStateReplaced
(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) Called inWorldChunk.setBlockState(BlockPos, BlockState, boolean)
ifnewState
is different fromstate
.void
randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) void
scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) protected boolean
shouldUnpower
(World world, BlockPos pos, BlockState state) Methods inherited from class net.minecraft.block.TorchBlock
canPlaceAt, getOutlineShape, getStateForNeighborUpdate
Methods inherited from class net.minecraft.block.Block
afterBreak, appendStacks, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, 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, isTranslucent, 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, canReplace, createScreenHandlerFactory, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getLootTableId, getMaxHorizontalModelOffset, getOffsetType, getOpacity, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getVerticalModelOffsetMultiplier, hasComparatorOutput, hasSidedTransparency, isShapeFullCube, isSideInvisible, mirror, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onSyncedBlockEvent, onUse, prepare, randomTick, rotate
-
Field Details
-
LIT
- Mappings:
Namespace Name Mixin selector official a
Lcjd;a:Lcpm;
intermediary field_11446
Lnet/minecraft/class_2459;field_11446:Lnet/minecraft/class_2746;
named LIT
Lnet/minecraft/block/RedstoneTorchBlock;LIT:Lnet/minecraft/state/property/BooleanProperty;
-
BURNOUT_MAP
- Mappings:
Namespace Name Mixin selector official e
Lcjd;e:Ljava/util/Map;
intermediary field_11445
Lnet/minecraft/class_2459;field_11445:Ljava/util/Map;
named BURNOUT_MAP
Lnet/minecraft/block/RedstoneTorchBlock;BURNOUT_MAP:Ljava/util/Map;
-
field_31227
public static final int field_31227- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lcjd;b:I
intermediary field_31227
Lnet/minecraft/class_2459;field_31227:I
named field_31227
Lnet/minecraft/block/RedstoneTorchBlock;field_31227:I
-
field_31228
public static final int field_31228- See Also:
- Mappings:
Namespace Name Mixin selector official c
Lcjd;c:I
intermediary field_31228
Lnet/minecraft/class_2459;field_31228:I
named field_31228
Lnet/minecraft/block/RedstoneTorchBlock;field_31228:I
-
field_31229
public static final int field_31229- See Also:
- Mappings:
Namespace Name Mixin selector official d
Lcjd;d:I
intermediary field_31229
Lnet/minecraft/class_2459;field_31229:I
named field_31229
Lnet/minecraft/block/RedstoneTorchBlock;field_31229:I
-
SCHEDULED_TICK_DELAY
private static final int SCHEDULED_TICK_DELAY- See Also:
- Mappings:
Namespace Name Mixin selector official f
Lcjd;f:I
intermediary field_31230
Lnet/minecraft/class_2459;field_31230:I
named SCHEDULED_TICK_DELAY
Lnet/minecraft/block/RedstoneTorchBlock;SCHEDULED_TICK_DELAY:I
-
-
Constructor Details
-
RedstoneTorchBlock
- Mappings:
Namespace Name Mixin selector official <init>
Lcou;<init>(Lcou$c;)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
-
onBlockAdded
public void onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) - Overrides:
onBlockAdded
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official b
Lcou;b(Lcov;Lcav;Lgj;Lcov;Z)V
intermediary method_9615
Lnet/minecraft/class_4970;method_9615(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)V
named onBlockAdded
Lnet/minecraft/block/AbstractBlock;onBlockAdded(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)V
-
onStateReplaced
public void onStateReplaced(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) Called inWorldChunk.setBlockState(BlockPos, BlockState, boolean)
ifnewState
is different fromstate
. Vanilla blocks perform removal cleanups here.- Overrides:
onStateReplaced
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Lcou;a(Lcov;Lcav;Lgj;Lcov;Z)V
intermediary method_9536
Lnet/minecraft/class_4970;method_9536(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)V
named onStateReplaced
Lnet/minecraft/block/AbstractBlock;onStateReplaced(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)V
-
getWeakRedstonePower
public int getWeakRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction) - Overrides:
getWeakRedstonePower
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Lcou;a(Lcov;Lcab;Lgj;Lgo;)I
intermediary method_9524
Lnet/minecraft/class_4970;method_9524(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)I
named getWeakRedstonePower
Lnet/minecraft/block/AbstractBlock;getWeakRedstonePower(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)I
-
shouldUnpower
- Mappings:
Namespace Name Mixin selector official a
Lcjd;a(Lcav;Lgj;Lcov;)Z
intermediary method_10488
Lnet/minecraft/class_2459;method_10488(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Z
named shouldUnpower
Lnet/minecraft/block/RedstoneTorchBlock;shouldUnpower(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
-
scheduledTick
- Overrides:
scheduledTick
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Lcou;a(Lcov;Ladw;Lgj;Ljava/util/Random;)V
intermediary method_9588
Lnet/minecraft/class_4970;method_9588(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Ljava/util/Random;)V
named scheduledTick
Lnet/minecraft/block/AbstractBlock;scheduledTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
-
neighborUpdate
public void neighborUpdate(BlockState state, World world, BlockPos pos, Block block, BlockPos fromPos, boolean notify) - Overrides:
neighborUpdate
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official a
Lcou;a(Lcov;Lcav;Lgj;Lcdq;Lgj;Z)V
intermediary method_9612
Lnet/minecraft/class_4970;method_9612(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2248;Lnet/minecraft/class_2338;Z)V
named neighborUpdate
Lnet/minecraft/block/AbstractBlock;neighborUpdate(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;Lnet/minecraft/util/math/BlockPos;Z)V
-
getStrongRedstonePower
public int getStrongRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction) - Overrides:
getStrongRedstonePower
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official b
Lcou;b(Lcov;Lcab;Lgj;Lgo;)I
intermediary method_9603
Lnet/minecraft/class_4970;method_9603(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)I
named getStrongRedstonePower
Lnet/minecraft/block/AbstractBlock;getStrongRedstonePower(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)I
-
emitsRedstonePower
- Overrides:
emitsRedstonePower
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector official f_
Lcou;f_(Lcov;)Z
intermediary method_9506
Lnet/minecraft/class_4970;method_9506(Lnet/minecraft/class_2680;)Z
named emitsRedstonePower
Lnet/minecraft/block/AbstractBlock;emitsRedstonePower(Lnet/minecraft/block/BlockState;)Z
-
randomDisplayTick
- Overrides:
randomDisplayTick
in classTorchBlock
- Mappings:
Namespace Name Mixin selector official a
Lcdq;a(Lcov;Lcav;Lgj;Ljava/util/Random;)V
intermediary method_9496
Lnet/minecraft/class_2248;method_9496(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Ljava/util/Random;)V
named randomDisplayTick
Lnet/minecraft/block/Block;randomDisplayTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
-
appendProperties
- Overrides:
appendProperties
in classBlock
- Mappings:
Namespace Name Mixin selector official a
Lcdq;a(Lcow$a;)V
intermediary method_9515
Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)V
named appendProperties
Lnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
-
isBurnedOut
- Mappings:
Namespace Name Mixin selector official a
Lcjd;a(Lcav;Lgj;Z)Z
intermediary method_10489
Lnet/minecraft/class_2459;method_10489(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Z)Z
named isBurnedOut
Lnet/minecraft/block/RedstoneTorchBlock;isBurnedOut(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Z)Z
-