Package net.minecraft.block
Class RailBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.AbstractRailBlock
net.minecraft.block.RailBlock
- Mappings:
Namespace Name official atbintermediary net/minecraft/class_173named net/minecraft/block/RailBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.AbstractRailBlock
AbstractRailBlock.RailPlacementHelper, AbstractRailBlock.RailShapeTypeNested classes/interfaces inherited from class net.minecraft.block.Block
Block.OffsetType -
Field Summary
FieldsFields inherited from class net.minecraft.block.AbstractRailBlock
allowCurves, field_12566, field_15123Fields 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.intgetData(BlockState state) Returns the data value for a blockstate Throws anIllegalArmumentExceptionas this method does not workprotected voidmethod_8613(BlockState blockState, World world, BlockPos blockPos, Block block) 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.AbstractRailBlock
canBePlacedAtPos, getCollisionBox, getPistonBehavior, getRenderLayerType, isFullBoundsCubeForCulling, isRail, isRail, method_11562, method_14307, method_8640, onBreak, onBreaking, onCreation, updateBlockStateMethods 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, getSoundGroup, getStateFromData, 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, method_8669, onBlockBreak, onBlockBreakStart, onBreakByPlayer, onBreakByPlayer, 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
-
SHAPE
- Mappings:
Namespace Name Mixin selector official dLatb;d:Laxh;intermediary field_9617Lnet/minecraft/class_173;field_9617:Lnet/minecraft/class_2245;named SHAPELnet/minecraft/block/RailBlock;SHAPE:Lnet/minecraft/state/property/EnumProperty;
-
-
Constructor Details
-
RailBlock
protected RailBlock()
-
-
Method Details
-
method_8613
- Overrides:
method_8613in classAbstractRailBlock- Mappings:
Namespace Name Mixin selector official aLaos;a(Lawt;Lamu;Let;Laow;)Vintermediary method_8613Lnet/minecraft/class_1446;method_8613(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_197;)Vnamed method_8613Lnet/minecraft/block/AbstractRailBlock;method_8613(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;)V
-
getShapeProperty
- Specified by:
getShapePropertyin classAbstractRailBlock- Mappings:
Namespace Name Mixin selector official gLaos;g()Laxj;intermediary method_8616Lnet/minecraft/class_1446;method_8616()Lnet/minecraft/class_2247;named getShapePropertyLnet/minecraft/block/AbstractRailBlock;getShapeProperty()Lnet/minecraft/state/property/Property;
-
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;
-