Package net.minecraft.block
Class PoweredRailBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.AbstractRailBlock
net.minecraft.block.PoweredRailBlock
- Mappings:
Namespace Name official annintermediary net/minecraft/class_1454named net/minecraft/block/PoweredRailBlock
-
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
FieldsModifier and TypeFieldDescriptionstatic final BooleanPropertystatic final EnumProperty<AbstractRailBlock.RailShapeType>Fields inherited from class net.minecraft.block.AbstractRailBlock
allowCurves, field_12566, field_12567Fields 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 booleanisPoweredByOtherRails(World world, BlockPos pos, BlockState state, boolean boolean4, int distance) protected voidmethod_8613(BlockState blockState, World world, BlockPos blockPos, Block block) protected booleanmethod_8855(World world, BlockPos blockPos, boolean bool, int int2, AbstractRailBlock.RailShapeType railShapeType) 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, getCollisionBox, getPistonBehavior, getRenderLayerType, isFullBoundsCubeForCulling, isRail, isRail, method_11562, method_8641, onBreaking, onCreation, updateBlockStateMethods inherited from class net.minecraft.block.Block
appendCollisionBoxes, appendCollisionBoxes, appendItemStacks, areBlocksEqual, blocksMovement, canBePlacedAdjacent, canBeReplaced, 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, hasCollision, hasStats, isEqualTo, isFire, isFullBlock, isLeafBlock, isTransluscent, method_11557, method_11559, method_11563, method_11564, method_11565, method_11566, method_11568, method_11575, method_11576, method_11577, method_414, method_421, 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, useNeighbourLight
-
Field Details
-
SHAPE
- Mappings:
Namespace Name Mixin selector official dLann;d:Larq;intermediary field_9582Lnet/minecraft/class_1454;field_9582:Lnet/minecraft/class_2245;named SHAPELnet/minecraft/block/PoweredRailBlock;SHAPE:Lnet/minecraft/state/property/EnumProperty;
-
POWERED
- Mappings:
Namespace Name Mixin selector official eLann;e:Laro;intermediary field_9581Lnet/minecraft/class_1454;field_9581:Lnet/minecraft/class_2243;named POWEREDLnet/minecraft/block/PoweredRailBlock;POWERED:Lnet/minecraft/state/property/BooleanProperty;
-
-
Constructor Details
-
PoweredRailBlock
protected PoweredRailBlock()
-
-
Method Details
-
isPoweredByOtherRails
protected boolean isPoweredByOtherRails(World world, BlockPos pos, BlockState state, boolean boolean4, int distance) - Mappings:
Namespace Name Mixin selector official aLann;a(Laht;Lcl;Lard;ZI)Zintermediary method_8854Lnet/minecraft/class_1454;method_8854(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;ZI)Znamed isPoweredByOtherRailsLnet/minecraft/block/PoweredRailBlock;isPoweredByOtherRails(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;ZI)Z
-
method_8855
protected boolean method_8855(World world, BlockPos blockPos, boolean bool, int int2, AbstractRailBlock.RailShapeType railShapeType) - Mappings:
Namespace Name Mixin selector official aLann;a(Laht;Lcl;ZILajp$b;)Zintermediary method_8855Lnet/minecraft/class_1454;method_8855(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;ZILnet/minecraft/class_1446$class_2175;)Znamed method_8855Lnet/minecraft/block/PoweredRailBlock;method_8855(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;ZILnet/minecraft/block/AbstractRailBlock$RailShapeType;)Z
-
method_8613
- Overrides:
method_8613in classAbstractRailBlock- Mappings:
Namespace Name Mixin selector official bLajp;b(Lard;Laht;Lcl;Lajt;)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 gLajp;g()Lars;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 aLajt;a(I)Lard;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 eLajt;e(Lard;)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 aLajt;a(Lard;Laoe;)Lard;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 aLajt;a(Lard;Lamr;)Lard;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 bLajt;b()Lare;intermediary method_8676Lnet/minecraft/class_197;method_8676()Lnet/minecraft/class_2233;named appendPropertiesLnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;
-