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 aisintermediary 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, Block.Sound -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BooleanPropertystatic final EnumProperty<AbstractRailBlock.RailShapeType>Fields inherited from class net.minecraft.block.AbstractRailBlock
allowCurvesFields inherited from class net.minecraft.block.Block
ANVIL, blastResistance, BLOCK_STATES, blockEntity, boundingBoxMaxX, boundingBoxMaxY, boundingBoxMaxZ, boundingBoxMinX, boundingBoxMinY, boundingBoxMinZ, CLOTH, fullBlock, GLASS, GRASS, GRAVEL, hardness, LADDER, lightLevel, material, materialColor, opacity, ORE, particleGravity, RAIL, randomTicks, REGISTRY, SAND, SLIME, slipperiness, SNOW, sound, stateManager, stats, STONE, transluscent, useNeighbourLight, WOOD -
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 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 idprotected voidupdateBlockState(World world, BlockPos pos, BlockState state, Block block) Methods inherited from class net.minecraft.block.AbstractRailBlock
canBePlacedAtPos, getCollisionBox, getPistonInteractionType, getRenderLayerType, hasTransperancy, isRail, isRail, method_414, neighborUpdate, onBreaking, onCreation, renderAsNormalBlock, setBoundingBox, updateBlockStateMethods inherited from class net.minecraft.block.Block
appendCollisionBoxes, appendItemStacks, areBlocksEqual, blocksMovement, calcBlockBreakingData, canBePlacedAdjacent, canBeReplaced, canCollide, canMobSpawnInside, createStackFromBlock, disableStats, dropAsItem, dropExperience, emitsRedstonePower, get, getAmbientOcclusionLightLevel, getBlastResistance, getBlendColor, getBlockColor, getBlockFromItem, getBlockState, getBlockType, getBonusDrops, getBrightness, getByBlockState, getById, getColor, getColor, getComparatorOutput, getDefaultState, getDropCount, getDropItem, getIdByBlock, getItemGroup, getLightLevel, getMaterial, getMaterialColor, getMaxX, getMaxY, getMaxZ, getMeta, getMeta, getMinX, getMinY, getMinZ, getOffsetType, getOpacity, getPickItem, getSelectionBox, getStateFromData, getStateFromRawId, getStateManager, getStrength, getStrongRedstonePower, getTickRate, getTranslatedName, getTranslationKey, getWeakRedstonePower, harvest, hasBlockEntity, hasCollision, hasCollision, hasComparatorOutput, hasStats, isEqualTo, isFire, isFlowerPot, isFullBlock, isFullCube, isLeafBlock, isNormalBlock, isReplaceable, isSideInvisible, isTransluscent, method_8666, onBlockBreak, onBlockBreakStart, onBreakByPlayer, onBreakByPlayer, onDestroyedByExplosion, onEntityCollision, onEntityCollision, onEvent, onLandedUpon, onPlaced, onSteppedOn, onUpdateTick, onUse, rainTick, randomDisplayTick, randomDropAsItem, requiresSilkTouch, scheduledTick, setBlockItemBounds, setBoundingBox, setDefaultState, setEntityVelocity, setItemGroup, setLightLevel, setOpacity, setResistance, setSound, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, ticksRandomly, toString, usesNeighbourLight
-
Field Details
-
SHAPE
- Mappings:
Namespace Name Mixin selector official bLais;b:Lamm;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 NLais;N:Lamk;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 aLais;a(Ladm;Lcj;Lalz;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 aLais;a(Ladm;Lcj;ZILafe$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
-
updateBlockState
- Overrides:
updateBlockStatein classAbstractRailBlock- Mappings:
Namespace Name Mixin selector official bLafe;b(Ladm;Lcj;Lalz;Lafh;)Vintermediary method_8613Lnet/minecraft/class_1446;method_8613(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_197;)Vnamed updateBlockStateLnet/minecraft/block/AbstractRailBlock;updateBlockState(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/Block;)V
-
getShapeProperty
- Specified by:
getShapePropertyin classAbstractRailBlock- Mappings:
Namespace Name Mixin selector official nLafe;n()Lamo;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 aLafh;a(I)Lalz;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 cLafh;c(Lalz;)Iintermediary method_8671Lnet/minecraft/class_197;method_8671(Lnet/minecraft/class_2232;)Inamed getDataLnet/minecraft/block/Block;getData(Lnet/minecraft/block/BlockState;)I
-
appendProperties
Returns a new state manager with a property array.- Overrides:
appendPropertiesin classBlock- Returns:
- New state manager
- Mappings:
Namespace Name Mixin selector official eLafh;e()Lama;intermediary method_8676Lnet/minecraft/class_197;method_8676()Lnet/minecraft/class_2233;named appendPropertiesLnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;
-