Package net.minecraft.block
Class TorchBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.TorchBlock
- Direct Known Subclasses:
RedstoneTorchBlock
- Mappings:
Namespace Name official auqintermediary net/minecraft/class_203named net/minecraft/block/TorchBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.OffsetType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DirectionPropertyprotected static final Boxprotected static final Boxprotected static final Boxprotected static final Boxprotected static final BoxFields inherited from class net.minecraft.block.Block
blastResistance, BLOCK_STATES, blockEntity, blockSoundGroup, collisionBox, EMPTY_BOX, fullBlock, hardness, lightLevel, material, materialColor, opacity, particleGravity, randomTicks, REGISTRY, slipperiness, stateManager, stats, transluscent, useNeighbourLight -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StateManagerReturns a new state manager with a property array.booleancanBePlacedAtPos(World world, BlockPos pos) Returns whether the current block can be placed at a certainBlockPosgetCollisionBox(BlockState state, BlockView view, BlockPos pos) intgetData(BlockState state) Returns the data value for a blockstate Throws anIllegalArmumentExceptionas this method does not workReturns the appropriate RenderLayer for a block.getStateFromData(World world, BlockPos pos, Direction dir, float float2, float float3, float float4, int id, LivingEntity entity) Returns a BlockState from an idbooleanisFullBoundsCubeForCulling(BlockState blockState) booleanmethod_11562(BlockState state) method_14307(BlockView view, BlockState state, BlockPos pos, Direction direction) method_8640(BlockState blockState, BlockView blockView, BlockPos blockPos) voidmethod_8669(BlockState blockState, World world, BlockPos blockPos, Random random) private booleanmethod_8933(World world, BlockPos blockPos, Direction direction) private booleanmethod_8934(World world, BlockPos blockPos) protected booleanmethod_8935(World world, BlockPos blockPos, BlockState blockState) protected booleanmethod_8936(World world, BlockPos blockPos, BlockState blockState) voidvoidonCreation(World world, BlockPos pos, BlockState state) Runs when the block is placed (by a player or enderman).stateFromData(int data) Returns a blockstate of the current block from it's idwithMirror(BlockState state, BlockMirror mirror) withRotation(BlockState state, BlockRotation rotation) Methods inherited from class net.minecraft.block.Block
addStacksForDisplay, appendCollisionBoxes, appendCollisionBoxes, areBlocksEqual, blocksMovement, canBePlacedAdjacent, canCollide, canMobSpawnInside, createStackFromBlock, disableStats, dropAsItem, dropExperience, get, getBlastResistance, getBlockFromItem, getBlockRenderType, getBlockState, getBonusDrops, getByBlockState, getById, getComparatorOutput, getDefaultState, getDropCount, getDropItem, getHardness, getIdByBlock, getItemGroup, getLuminance, getMaterial, getMaterialColor, getMeta, getOffsetType, getOpacity, getPistonBehavior, getSoundGroup, getStateFromRawId, getStateManager, getTickRate, getTranslatedName, getTranslationKey, hasBlockEntity, hasCollision, hasStats, isEqualTo, isFire, isFullBlock, isTransluscent, method_11557, method_11559, method_11563, method_11564, method_11565, method_11566, method_11568, method_11575, method_11576, method_11577, method_13315, method_13702, method_13703, method_13704, method_14306, method_14308, method_14309, method_414, method_435, method_8638, method_8640, method_8651, method_8653, method_8654, method_8664, onBlockBreak, onBlockBreakStart, onBreakByPlayer, onBreakByPlayer, onBreaking, onDestroyedByExplosion, onEntityCollision, onEntityCollision, onLandedUpon, onPlaced, onSteppedOn, onUpdateTick, rainTick, randomDropAsItem, requiresSilkTouch, scheduledTick, setBlockSoundGroup, setDefaultState, setEntityVelocity, setItemGroup, setLightLevel, setOpacity, setResistance, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, ticksRandomly, toString, use, useNeighbourLight
-
Field Details
-
FACING
- Mappings:
Namespace Name Mixin selector official aLauq;a:Laxg;intermediary field_9748Lnet/minecraft/class_203;field_9748:Lnet/minecraft/class_2244;named FACINGLnet/minecraft/block/TorchBlock;FACING:Lnet/minecraft/state/property/DirectionProperty;
-
field_12804
- Mappings:
Namespace Name Mixin selector official bLauq;b:Lbhb;intermediary field_12804Lnet/minecraft/class_203;field_12804:Lnet/minecraft/class_231;named field_12804Lnet/minecraft/block/TorchBlock;field_12804:Lnet/minecraft/util/math/Box;
-
field_12805
- Mappings:
Namespace Name Mixin selector official cLauq;c:Lbhb;intermediary field_12805Lnet/minecraft/class_203;field_12805:Lnet/minecraft/class_231;named field_12805Lnet/minecraft/block/TorchBlock;field_12805:Lnet/minecraft/util/math/Box;
-
field_12806
- Mappings:
Namespace Name Mixin selector official dLauq;d:Lbhb;intermediary field_12806Lnet/minecraft/class_203;field_12806:Lnet/minecraft/class_231;named field_12806Lnet/minecraft/block/TorchBlock;field_12806:Lnet/minecraft/util/math/Box;
-
field_12807
- Mappings:
Namespace Name Mixin selector official eLauq;e:Lbhb;intermediary field_12807Lnet/minecraft/class_203;field_12807:Lnet/minecraft/class_231;named field_12807Lnet/minecraft/block/TorchBlock;field_12807:Lnet/minecraft/util/math/Box;
-
field_12808
- Mappings:
Namespace Name Mixin selector official fLauq;f:Lbhb;intermediary field_12808Lnet/minecraft/class_203;field_12808:Lnet/minecraft/class_231;named field_12808Lnet/minecraft/block/TorchBlock;field_12808:Lnet/minecraft/util/math/Box;
-
-
Constructor Details
-
TorchBlock
protected TorchBlock()
-
-
Method Details
-
getCollisionBox
- Overrides:
getCollisionBoxin classBlock- Mappings:
Namespace Name Mixin selector official bLaow;b(Lawt;Lamy;Let;)Lbhb;intermediary method_11554Lnet/minecraft/class_197;method_11554(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_231;named getCollisionBoxLnet/minecraft/block/Block;getCollisionBox(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Box;
-
method_8640
- Overrides:
method_8640in classBlock- Mappings:
Namespace Name Mixin selector official aLaow;a(Lawt;Lamy;Let;)Lbhb;intermediary method_8640Lnet/minecraft/class_197;method_8640(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_231;named method_8640Lnet/minecraft/block/Block;method_8640(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Box;
-
isFullBoundsCubeForCulling
- Overrides:
isFullBoundsCubeForCullingin classBlock- Mappings:
Namespace Name Mixin selector official bLaow;b(Lawt;)Zintermediary method_11560Lnet/minecraft/class_197;method_11560(Lnet/minecraft/class_2232;)Znamed isFullBoundsCubeForCullingLnet/minecraft/block/Block;isFullBoundsCubeForCulling(Lnet/minecraft/block/BlockState;)Z
-
method_11562
- Overrides:
method_11562in classBlock- Mappings:
Namespace Name Mixin selector official cLaow;c(Lawt;)Zintermediary method_11562Lnet/minecraft/class_197;method_11562(Lnet/minecraft/class_2232;)Znamed method_11562Lnet/minecraft/block/Block;method_11562(Lnet/minecraft/block/BlockState;)Z
-
method_8934
- Mappings:
Namespace Name Mixin selector official bLauq;b(Lamu;Let;)Zintermediary method_8934Lnet/minecraft/class_203;method_8934(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Znamed method_8934Lnet/minecraft/block/TorchBlock;method_8934(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
-
canBePlacedAtPos
Returns whether the current block can be placed at a certainBlockPos- Overrides:
canBePlacedAtPosin classBlock- Returns:
- Whether the current block can be placed at a BlockPos
- Mappings:
Namespace Name Mixin selector official aLaow;a(Lamu;Let;)Zintermediary method_8673Lnet/minecraft/class_197;method_8673(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Znamed canBePlacedAtPosLnet/minecraft/block/Block;canBePlacedAtPos(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
-
method_8933
- Mappings:
Namespace Name Mixin selector official aLauq;a(Lamu;Let;Lfa;)Zintermediary method_8933Lnet/minecraft/class_203;method_8933(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Znamed method_8933Lnet/minecraft/block/TorchBlock;method_8933(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
-
getStateFromData
public BlockState getStateFromData(World world, BlockPos pos, Direction dir, float float2, float float3, float float4, int id, LivingEntity entity) Returns a BlockState from an id- Overrides:
getStateFromDatain classBlock- Parameters:
world- The world that the block is placed inpos- The block's positiondir- The block's direction- Mappings:
Namespace Name Mixin selector official aLaow;a(Lamu;Let;Lfa;FFFILvp;)Lawt;intermediary method_8645Lnet/minecraft/class_197;method_8645(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;FFFILnet/minecraft/class_1699;)Lnet/minecraft/class_2232;named getStateFromDataLnet/minecraft/block/Block;getStateFromData(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;FFFILnet/minecraft/entity/LivingEntity;)Lnet/minecraft/block/BlockState;
-
onCreation
Runs when the block is placed (by a player or enderman).- Overrides:
onCreationin classBlock- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockState- Mappings:
Namespace Name Mixin selector official cLaow;c(Lamu;Let;Lawt;)Vintermediary method_8668Lnet/minecraft/class_197;method_8668(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Vnamed onCreationLnet/minecraft/block/Block;onCreation(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
onBreak
- Overrides:
onBreakin classBlock- Mappings:
Namespace Name Mixin selector official aLaow;a(Lawt;Lamu;Let;Laow;Let;)Vintermediary method_8641Lnet/minecraft/class_197;method_8641(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_197;Lnet/minecraft/class_2552;)Vnamed onBreakLnet/minecraft/block/Block;onBreak(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;Lnet/minecraft/util/math/BlockPos;)V
-
method_8935
- Mappings:
Namespace Name Mixin selector official eLauq;e(Lamu;Let;Lawt;)Zintermediary method_8935Lnet/minecraft/class_203;method_8935(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Znamed method_8935Lnet/minecraft/block/TorchBlock;method_8935(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
-
method_8936
- Mappings:
Namespace Name Mixin selector official fLauq;f(Lamu;Let;Lawt;)Zintermediary method_8936Lnet/minecraft/class_203;method_8936(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Znamed method_8936Lnet/minecraft/block/TorchBlock;method_8936(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
-
method_8669
@Environment(CLIENT) public void method_8669(BlockState blockState, World world, BlockPos blockPos, Random random) - Overrides:
method_8669in classBlock- Mappings:
Namespace Name Mixin selector official aLaow;a(Lawt;Lamu;Let;Ljava/util/Random;)Vintermediary method_8669Lnet/minecraft/class_197;method_8669(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Ljava/util/Random;)Vnamed method_8669Lnet/minecraft/block/Block;method_8669(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
-
getRenderLayerType
Returns the appropriate RenderLayer for a block. Only called on the client.- Overrides:
getRenderLayerTypein classBlock- Returns:
- The block's RenderLayer
- Mappings:
Namespace Name Mixin selector official fLaow;f()Lamm;intermediary method_8687Lnet/minecraft/class_197;method_8687()Lnet/minecraft/class_2165;named getRenderLayerTypeLnet/minecraft/block/Block;getRenderLayerType()Lnet/minecraft/client/render/BlockRenderLayer;
-
stateFromData
Returns a blockstate of the current block from it's id- Overrides:
stateFromDatain classBlock- Parameters:
data- The Blockstate's associated data value- Returns:
- The Default state
- Mappings:
Namespace Name Mixin selector official aLaow;a(I)Lawt;intermediary method_8635Lnet/minecraft/class_197;method_8635(I)Lnet/minecraft/class_2232;named stateFromDataLnet/minecraft/block/Block;stateFromData(I)Lnet/minecraft/block/BlockState;
-
getData
Returns the data value for a blockstate Throws anIllegalArmumentExceptionas this method does not work- Overrides:
getDatain classBlock- Parameters:
state- The Blockstate- Returns:
- Zero
- Mappings:
Namespace Name Mixin selector official eLaow;e(Lawt;)Iintermediary method_8671Lnet/minecraft/class_197;method_8671(Lnet/minecraft/class_2232;)Inamed getDataLnet/minecraft/block/Block;getData(Lnet/minecraft/block/BlockState;)I
-
withRotation
- Overrides:
withRotationin classBlock- Mappings:
Namespace Name Mixin selector official aLaow;a(Lawt;Latm;)Lawt;intermediary method_11556Lnet/minecraft/class_197;method_11556(Lnet/minecraft/class_2232;Lnet/minecraft/class_2734;)Lnet/minecraft/class_2232;named withRotationLnet/minecraft/block/Block;withRotation(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/block/BlockState;
-
withMirror
- Overrides:
withMirrorin classBlock- Mappings:
Namespace Name Mixin selector official aLaow;a(Lawt;Lary;)Lawt;intermediary method_11555Lnet/minecraft/class_197;method_11555(Lnet/minecraft/class_2232;Lnet/minecraft/class_2727;)Lnet/minecraft/class_2232;named withMirrorLnet/minecraft/block/Block;withMirror(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockMirror;)Lnet/minecraft/block/BlockState;
-
appendProperties
Returns a new state manager with a property array.- Overrides:
appendPropertiesin classBlock- Returns:
- New state manager
- Mappings:
Namespace Name Mixin selector official bLaow;b()Lawu;intermediary method_8676Lnet/minecraft/class_197;method_8676()Lnet/minecraft/class_2233;named appendPropertiesLnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;
-
method_14307
public BlockRenderLayer method_14307(BlockView view, BlockState state, BlockPos pos, Direction direction) - Overrides:
method_14307in classBlock- Mappings:
Namespace Name Mixin selector official aLaow;a(Lamy;Lawt;Let;Lfa;)Lawr;intermediary method_14307Lnet/minecraft/class_197;method_14307(Lnet/minecraft/class_1158;Lnet/minecraft/class_2232;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Lnet/minecraft/class_3225;named method_14307Lnet/minecraft/block/Block;method_14307(Lnet/minecraft/world/BlockView;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Lnet/minecraft/block/BlockRenderLayer;
-