类 RedstoneWireBlock
- java.lang.Object
-
- net.minecraft.block.AbstractBlock
-
- net.minecraft.block.Block
-
- net.minecraft.block.RedstoneWireBlock
-
- 所有已实现的接口:
ItemConvertible
public class RedstoneWireBlock extends Block
- Mappings:
Namespace Name official cdzintermediary net/minecraft/class_2457named net/minecraft/block/RedstoneWireBlock
-
-
嵌套类概要
-
从类继承的嵌套类/接口 net.minecraft.block.Block
Block.NeighborGroup
-
从类继承的嵌套类/接口 net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
-
-
字段概要
字段 修饰符和类型 字段 说明 private static Vec3d[]COLORSstatic Map<Direction,EnumProperty<WireConnection>>DIRECTION_TO_WIRE_CONNECTION_PROPERTYprivate static VoxelShapeDOT_SHAPEprivate BlockStatedotStateprivate static Map<Direction,VoxelShape>field_24414private static Map<Direction,VoxelShape>field_24415private static floatfield_31221protected static intfield_31222protected static intfield_31223protected static intfield_31224protected static intfield_31225protected static intfield_31226static IntPropertyPOWERprivate static Map<BlockState,VoxelShape>SHAPESstatic EnumProperty<WireConnection>WIRE_CONNECTION_EASTstatic EnumProperty<WireConnection>WIRE_CONNECTION_NORTHstatic EnumProperty<WireConnection>WIRE_CONNECTION_SOUTHstatic EnumProperty<WireConnection>WIRE_CONNECTION_WESTprivate booleanwiresGivePower-
从类继承的字段 net.minecraft.block.Block
field_31022, field_31023, field_31024, field_31025, field_31035, FORCE_STATE, LOGGER, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, SKIP_LIGHTING_UPDATES, STATE_IDS, stateManager
-
从类继承的字段 net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier
-
-
构造器概要
构造器 构造器 说明 RedstoneWireBlock(AbstractBlock.Settings settings)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 private voidaddPoweredParticles(World world, Random random, BlockPos pos, Vec3d color, Direction direction, Direction direction2, float float2, float float3)protected voidappendProperties(StateManager.Builder<Block,BlockState> builder)booleancanPlaceAt(BlockState state, WorldView world, BlockPos pos)private booleancanRunOnTop(BlockView world, BlockPos pos, BlockState floor)protected static booleanconnectsTo(BlockState state)protected static booleanconnectsTo(BlockState state, @Nullable Direction dir)booleanemitsRedstonePower(BlockState state)VoxelShapegetOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)BlockStategetPlacementState(ItemPlacementContext ctx)private BlockStategetPlacementState(BlockView world, BlockState state, BlockPos pos)private intgetReceivedRedstonePower(World world, BlockPos pos)private WireConnectiongetRenderConnectionType(BlockView world, BlockPos pos, Direction direction)private WireConnectiongetRenderConnectionType(BlockView world, BlockPos pos, Direction direction, boolean bool)private VoxelShapegetShapeForState(BlockState state)BlockStategetStateForNeighborUpdate(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos)Gets the possibly updated block state of this block when a neighboring block is updated.intgetStrongRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction)intgetWeakRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction)static intgetWireColor(int powerLevel)private intincreasePower(BlockState state)private static booleanisFullyConnected(BlockState state)private static booleanisNotConnected(BlockState state)private BlockStatemethod_27843(BlockView world, BlockState state, BlockPos pos)BlockStatemirror(BlockState state, BlockMirror mirror)voidneighborUpdate(BlockState state, World world, BlockPos pos, Block block, BlockPos fromPos, boolean notify)voidonBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify)voidonStateReplaced(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved)Called inWorldChunk.setBlockState(BlockPos, BlockState, boolean)ifnewStateis different fromstate.ActionResultonUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.voidprepare(BlockState state, WorldAccess world, BlockPos pos, int flags, int maxUpdateDepth)voidrandomDisplayTick(BlockState state, World world, BlockPos pos, Random random)BlockStaterotate(BlockState state, BlockRotation rotation)Applies a block rotation to a block state.private voidupdate(World world, BlockPos pos, BlockState state)private voidupdateForNewState(World world, BlockPos pos, BlockState oldState, BlockState newState)private voidupdateNeighbors(World world, BlockPos pos)private voidupdateOffsetNeighbors(World world, BlockPos pos)-
从类继承的方法 net.minecraft.block.Block
addStacksForDisplay, afterBreak, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStacks, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getRawIdFromState, 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
-
从类继承的方法 net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canReplace, createScreenHandlerFactory, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getLootTableId, getMaxModelOffset, getOffsetType, getOpacity, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, hasComparatorOutput, hasSidedTransparency, isSideInvisible, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onSyncedBlockEvent, randomTick, scheduledTick
-
-
-
-
字段详细资料
-
WIRE_CONNECTION_NORTH
public static final EnumProperty<WireConnection> WIRE_CONNECTION_NORTH
- Mappings:
Namespace Name Mixin selector official aLcdz;a:Lckp;intermediary field_11440Lnet/minecraft/class_2457;field_11440:Lnet/minecraft/class_2754;named WIRE_CONNECTION_NORTHLnet/minecraft/block/RedstoneWireBlock;WIRE_CONNECTION_NORTH:Lnet/minecraft/state/property/EnumProperty;
-
WIRE_CONNECTION_EAST
public static final EnumProperty<WireConnection> WIRE_CONNECTION_EAST
- Mappings:
Namespace Name Mixin selector official bLcdz;b:Lckp;intermediary field_11436Lnet/minecraft/class_2457;field_11436:Lnet/minecraft/class_2754;named WIRE_CONNECTION_EASTLnet/minecraft/block/RedstoneWireBlock;WIRE_CONNECTION_EAST:Lnet/minecraft/state/property/EnumProperty;
-
WIRE_CONNECTION_SOUTH
public static final EnumProperty<WireConnection> WIRE_CONNECTION_SOUTH
- Mappings:
Namespace Name Mixin selector official cLcdz;c:Lckp;intermediary field_11437Lnet/minecraft/class_2457;field_11437:Lnet/minecraft/class_2754;named WIRE_CONNECTION_SOUTHLnet/minecraft/block/RedstoneWireBlock;WIRE_CONNECTION_SOUTH:Lnet/minecraft/state/property/EnumProperty;
-
WIRE_CONNECTION_WEST
public static final EnumProperty<WireConnection> WIRE_CONNECTION_WEST
- Mappings:
Namespace Name Mixin selector official dLcdz;d:Lckp;intermediary field_11439Lnet/minecraft/class_2457;field_11439:Lnet/minecraft/class_2754;named WIRE_CONNECTION_WESTLnet/minecraft/block/RedstoneWireBlock;WIRE_CONNECTION_WEST:Lnet/minecraft/state/property/EnumProperty;
-
POWER
public static final IntProperty POWER
- Mappings:
Namespace Name Mixin selector official eLcdz;e:Lckr;intermediary field_11432Lnet/minecraft/class_2457;field_11432:Lnet/minecraft/class_2758;named POWERLnet/minecraft/block/RedstoneWireBlock;POWER:Lnet/minecraft/state/property/IntProperty;
-
DIRECTION_TO_WIRE_CONNECTION_PROPERTY
public static final Map<Direction,EnumProperty<WireConnection>> DIRECTION_TO_WIRE_CONNECTION_PROPERTY
- Mappings:
Namespace Name Mixin selector official fLcdz;f:Ljava/util/Map;intermediary field_11435Lnet/minecraft/class_2457;field_11435:Ljava/util/Map;named DIRECTION_TO_WIRE_CONNECTION_PROPERTYLnet/minecraft/block/RedstoneWireBlock;DIRECTION_TO_WIRE_CONNECTION_PROPERTY:Ljava/util/Map;
-
field_31222
protected static final int field_31222
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official gLcdz;g:Iintermediary field_31222Lnet/minecraft/class_2457;field_31222:Inamed field_31222Lnet/minecraft/block/RedstoneWireBlock;field_31222:I
-
field_31223
protected static final int field_31223
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official hLcdz;h:Iintermediary field_31223Lnet/minecraft/class_2457;field_31223:Inamed field_31223Lnet/minecraft/block/RedstoneWireBlock;field_31223:I
-
field_31224
protected static final int field_31224
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official iLcdz;i:Iintermediary field_31224Lnet/minecraft/class_2457;field_31224:Inamed field_31224Lnet/minecraft/block/RedstoneWireBlock;field_31224:I
-
field_31225
protected static final int field_31225
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official jLcdz;j:Iintermediary field_31225Lnet/minecraft/class_2457;field_31225:Inamed field_31225Lnet/minecraft/block/RedstoneWireBlock;field_31225:I
-
field_31226
protected static final int field_31226
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official kLcdz;k:Iintermediary field_31226Lnet/minecraft/class_2457;field_31226:Inamed field_31226Lnet/minecraft/block/RedstoneWireBlock;field_31226:I
-
DOT_SHAPE
private static final VoxelShape DOT_SHAPE
- Mappings:
Namespace Name Mixin selector official lLcdz;l:Ldmt;intermediary field_24413Lnet/minecraft/class_2457;field_24413:Lnet/minecraft/class_265;named DOT_SHAPELnet/minecraft/block/RedstoneWireBlock;DOT_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
field_24414
private static final Map<Direction,VoxelShape> field_24414
- Mappings:
Namespace Name Mixin selector official mLcdz;m:Ljava/util/Map;intermediary field_24414Lnet/minecraft/class_2457;field_24414:Ljava/util/Map;named field_24414Lnet/minecraft/block/RedstoneWireBlock;field_24414:Ljava/util/Map;
-
field_24415
private static final Map<Direction,VoxelShape> field_24415
- Mappings:
Namespace Name Mixin selector official nLcdz;n:Ljava/util/Map;intermediary field_24415Lnet/minecraft/class_2457;field_24415:Ljava/util/Map;named field_24415Lnet/minecraft/block/RedstoneWireBlock;field_24415:Ljava/util/Map;
-
SHAPES
private static final Map<BlockState,VoxelShape> SHAPES
- Mappings:
Namespace Name Mixin selector official FLcdz;F:Ljava/util/Map;intermediary field_24416Lnet/minecraft/class_2457;field_24416:Ljava/util/Map;named SHAPESLnet/minecraft/block/RedstoneWireBlock;SHAPES:Ljava/util/Map;
-
COLORS
private static final Vec3d[] COLORS
- Mappings:
Namespace Name Mixin selector official GLcdz;G:[Ldma;intermediary field_24466Lnet/minecraft/class_2457;field_24466:[Lnet/minecraft/class_243;named COLORSLnet/minecraft/block/RedstoneWireBlock;COLORS:[Lnet/minecraft/util/math/Vec3d;
-
field_31221
private static final float field_31221
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official HLcdz;H:Fintermediary field_31221Lnet/minecraft/class_2457;field_31221:Fnamed field_31221Lnet/minecraft/block/RedstoneWireBlock;field_31221:F
-
dotState
private final BlockState dotState
- Mappings:
Namespace Name Mixin selector official ILcdz;I:Lcjr;intermediary field_24733Lnet/minecraft/class_2457;field_24733:Lnet/minecraft/class_2680;named dotStateLnet/minecraft/block/RedstoneWireBlock;dotState:Lnet/minecraft/block/BlockState;
-
wiresGivePower
private boolean wiresGivePower
- Mappings:
Namespace Name Mixin selector official JLcdz;J:Zintermediary field_11438Lnet/minecraft/class_2457;field_11438:Znamed wiresGivePowerLnet/minecraft/block/RedstoneWireBlock;wiresGivePower:Z
-
-
构造器详细资料
-
RedstoneWireBlock
public RedstoneWireBlock(AbstractBlock.Settings settings)
- Mappings:
Namespace Name Mixin selector official <init>Lcjq;<init>(Lcjq$c;)Vintermediary <init>Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)Vnamed <init>Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
-
-
方法详细资料
-
getShapeForState
private VoxelShape getShapeForState(BlockState state)
- Mappings:
Namespace Name Mixin selector official nLcdz;n(Lcjr;)Ldmt;intermediary method_27845Lnet/minecraft/class_2457;method_27845(Lnet/minecraft/class_2680;)Lnet/minecraft/class_265;named getShapeForStateLnet/minecraft/block/RedstoneWireBlock;getShapeForState(Lnet/minecraft/block/BlockState;)Lnet/minecraft/util/shape/VoxelShape;
-
getOutlineShape
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
- 覆盖:
getOutlineShape在类中AbstractBlock- Mappings:
Namespace Name Mixin selector official aLcjq;a(Lcjr;Lbuv;Lgb;Ldmf;)Ldmt;intermediary method_9530Lnet/minecraft/class_4970;method_9530(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Lnet/minecraft/class_265;named getOutlineShapeLnet/minecraft/block/AbstractBlock;getOutlineShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Lnet/minecraft/util/shape/VoxelShape;
-
getPlacementState
public BlockState getPlacementState(ItemPlacementContext ctx)
- 覆盖:
getPlacementState在类中Block- Mappings:
Namespace Name Mixin selector official aLbyq;a(Lbrr;)Lcjr;intermediary method_9605Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;named getPlacementStateLnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;
-
getPlacementState
private BlockState getPlacementState(BlockView world, BlockState state, BlockPos pos)
- Mappings:
Namespace Name Mixin selector official aLcdz;a(Lbuv;Lcjr;Lgb;)Lcjr;intermediary method_27840Lnet/minecraft/class_2457;method_27840(Lnet/minecraft/class_1922;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;named getPlacementStateLnet/minecraft/block/RedstoneWireBlock;getPlacementState(Lnet/minecraft/world/BlockView;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
method_27843
private BlockState method_27843(BlockView world, BlockState state, BlockPos pos)
- Mappings:
Namespace Name Mixin selector official bLcdz;b(Lbuv;Lcjr;Lgb;)Lcjr;intermediary method_27843Lnet/minecraft/class_2457;method_27843(Lnet/minecraft/class_1922;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;named method_27843Lnet/minecraft/block/RedstoneWireBlock;method_27843(Lnet/minecraft/world/BlockView;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
getStateForNeighborUpdate
public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos)
Gets the possibly updated block state of this block when a neighboring block is updated.- 覆盖:
getStateForNeighborUpdate在类中AbstractBlock- 参数:
state- the state of this blockdirection- the direction from this block to the neighborneighborState- the state of the updated neighbor blockworld- the worldpos- the position of this blockneighborPos- the position of the neighbor block- 返回:
- the new state of this block
- Mappings:
Namespace Name Mixin selector official aLcjq;a(Lcjr;Lgg;Lcjr;Lbvs;Lgb;Lgb;)Lcjr;intermediary method_9559Lnet/minecraft/class_4970;method_9559(Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;named getStateForNeighborUpdateLnet/minecraft/block/AbstractBlock;getStateForNeighborUpdate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
isFullyConnected
private static boolean isFullyConnected(BlockState state)
- Mappings:
Namespace Name Mixin selector official oLcdz;o(Lcjr;)Zintermediary method_27846Lnet/minecraft/class_2457;method_27846(Lnet/minecraft/class_2680;)Znamed isFullyConnectedLnet/minecraft/block/RedstoneWireBlock;isFullyConnected(Lnet/minecraft/block/BlockState;)Z
-
isNotConnected
private static boolean isNotConnected(BlockState state)
- Mappings:
Namespace Name Mixin selector official pLcdz;p(Lcjr;)Zintermediary method_28483Lnet/minecraft/class_2457;method_28483(Lnet/minecraft/class_2680;)Znamed isNotConnectedLnet/minecraft/block/RedstoneWireBlock;isNotConnected(Lnet/minecraft/block/BlockState;)Z
-
prepare
public void prepare(BlockState state, WorldAccess world, BlockPos pos, int flags, int maxUpdateDepth)
- 覆盖:
prepare在类中AbstractBlock- Mappings:
Namespace Name Mixin selector official aLcjq;a(Lcjr;Lbvs;Lgb;II)Vintermediary method_9517Lnet/minecraft/class_4970;method_9517(Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;II)Vnamed prepareLnet/minecraft/block/AbstractBlock;prepare(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;II)V
-
getRenderConnectionType
private WireConnection getRenderConnectionType(BlockView world, BlockPos pos, Direction direction)
- Mappings:
Namespace Name Mixin selector official aLcdz;a(Lbuv;Lgb;Lgg;)Lckw;intermediary method_10477Lnet/minecraft/class_2457;method_10477(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Lnet/minecraft/class_2773;named getRenderConnectionTypeLnet/minecraft/block/RedstoneWireBlock;getRenderConnectionType(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Lnet/minecraft/block/enums/WireConnection;
-
getRenderConnectionType
private WireConnection getRenderConnectionType(BlockView world, BlockPos pos, Direction direction, boolean bool)
- Mappings:
Namespace Name Mixin selector official aLcdz;a(Lbuv;Lgb;Lgg;Z)Lckw;intermediary method_27841Lnet/minecraft/class_2457;method_27841(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;Z)Lnet/minecraft/class_2773;named getRenderConnectionTypeLnet/minecraft/block/RedstoneWireBlock;getRenderConnectionType(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;Z)Lnet/minecraft/block/enums/WireConnection;
-
canPlaceAt
public boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos)
- 覆盖:
canPlaceAt在类中AbstractBlock- Mappings:
Namespace Name Mixin selector official aLcjq;a(Lcjr;Lbvu;Lgb;)Zintermediary method_9558Lnet/minecraft/class_4970;method_9558(Lnet/minecraft/class_2680;Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Znamed canPlaceAtLnet/minecraft/block/AbstractBlock;canPlaceAt(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Z
-
canRunOnTop
private boolean canRunOnTop(BlockView world, BlockPos pos, BlockState floor)
- Mappings:
Namespace Name Mixin selector official bLcdz;b(Lbuv;Lgb;Lcjr;)Zintermediary method_27937Lnet/minecraft/class_2457;method_27937(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Znamed canRunOnTopLnet/minecraft/block/RedstoneWireBlock;canRunOnTop(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
-
update
private void update(World world, BlockPos pos, BlockState state)
- Mappings:
Namespace Name Mixin selector official aLcdz;a(Lbvr;Lgb;Lcjr;)Vintermediary method_10485Lnet/minecraft/class_2457;method_10485(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed updateLnet/minecraft/block/RedstoneWireBlock;update(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
getReceivedRedstonePower
private int getReceivedRedstonePower(World world, BlockPos pos)
- Mappings:
Namespace Name Mixin selector official aLcdz;a(Lbvr;Lgb;)Iintermediary method_27842Lnet/minecraft/class_2457;method_27842(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Inamed getReceivedRedstonePowerLnet/minecraft/block/RedstoneWireBlock;getReceivedRedstonePower(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)I
-
increasePower
private int increasePower(BlockState state)
- Mappings:
Namespace Name Mixin selector official qLcdz;q(Lcjr;)Iintermediary method_10486Lnet/minecraft/class_2457;method_10486(Lnet/minecraft/class_2680;)Inamed increasePowerLnet/minecraft/block/RedstoneWireBlock;increasePower(Lnet/minecraft/block/BlockState;)I
-
updateNeighbors
private void updateNeighbors(World world, BlockPos pos)
- Mappings:
Namespace Name Mixin selector official bLcdz;b(Lbvr;Lgb;)Vintermediary method_10479Lnet/minecraft/class_2457;method_10479(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Vnamed updateNeighborsLnet/minecraft/block/RedstoneWireBlock;updateNeighbors(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
-
onBlockAdded
public void onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify)
- 覆盖:
onBlockAdded在类中AbstractBlock- Mappings:
Namespace Name Mixin selector official bLcjq;b(Lcjr;Lbvr;Lgb;Lcjr;Z)Vintermediary method_9615Lnet/minecraft/class_4970;method_9615(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)Vnamed onBlockAddedLnet/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)ifnewStateis different fromstate. Vanilla blocks perform removal cleanups here.- 覆盖:
onStateReplaced在类中AbstractBlock- Mappings:
Namespace Name Mixin selector official aLcjq;a(Lcjr;Lbvr;Lgb;Lcjr;Z)Vintermediary method_9536Lnet/minecraft/class_4970;method_9536(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)Vnamed onStateReplacedLnet/minecraft/block/AbstractBlock;onStateReplaced(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)V
-
updateOffsetNeighbors
private void updateOffsetNeighbors(World world, BlockPos pos)
- Mappings:
Namespace Name Mixin selector official cLcdz;c(Lbvr;Lgb;)Vintermediary method_27844Lnet/minecraft/class_2457;method_27844(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Vnamed updateOffsetNeighborsLnet/minecraft/block/RedstoneWireBlock;updateOffsetNeighbors(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
-
neighborUpdate
public void neighborUpdate(BlockState state, World world, BlockPos pos, Block block, BlockPos fromPos, boolean notify)
- 覆盖:
neighborUpdate在类中AbstractBlock- Mappings:
Namespace Name Mixin selector official aLcjq;a(Lcjr;Lbvr;Lgb;Lbyq;Lgb;Z)Vintermediary method_9612Lnet/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)Vnamed neighborUpdateLnet/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)
- 覆盖:
getStrongRedstonePower在类中AbstractBlock- Mappings:
Namespace Name Mixin selector official bLcjq;b(Lcjr;Lbuv;Lgb;Lgg;)Iintermediary method_9603Lnet/minecraft/class_4970;method_9603(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Inamed getStrongRedstonePowerLnet/minecraft/block/AbstractBlock;getStrongRedstonePower(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)I
-
getWeakRedstonePower
public int getWeakRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction)
- 覆盖:
getWeakRedstonePower在类中AbstractBlock- Mappings:
Namespace Name Mixin selector official aLcjq;a(Lcjr;Lbuv;Lgb;Lgg;)Iintermediary method_9524Lnet/minecraft/class_4970;method_9524(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Inamed getWeakRedstonePowerLnet/minecraft/block/AbstractBlock;getWeakRedstonePower(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)I
-
connectsTo
protected static boolean connectsTo(BlockState state)
- Mappings:
Namespace Name Mixin selector official hLcdz;h(Lcjr;)Zintermediary method_10484Lnet/minecraft/class_2457;method_10484(Lnet/minecraft/class_2680;)Znamed connectsToLnet/minecraft/block/RedstoneWireBlock;connectsTo(Lnet/minecraft/block/BlockState;)Z
-
connectsTo
protected static boolean connectsTo(BlockState state, @Nullable @Nullable Direction dir)
- Mappings:
Namespace Name Mixin selector official aLcdz;a(Lcjr;Lgg;)Zintermediary method_10482Lnet/minecraft/class_2457;method_10482(Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;)Znamed connectsToLnet/minecraft/block/RedstoneWireBlock;connectsTo(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;)Z
-
emitsRedstonePower
public boolean emitsRedstonePower(BlockState state)
- 覆盖:
emitsRedstonePower在类中AbstractBlock- Mappings:
Namespace Name Mixin selector official e_Lcjq;e_(Lcjr;)Zintermediary method_9506Lnet/minecraft/class_4970;method_9506(Lnet/minecraft/class_2680;)Znamed emitsRedstonePowerLnet/minecraft/block/AbstractBlock;emitsRedstonePower(Lnet/minecraft/block/BlockState;)Z
-
getWireColor
public static int getWireColor(int powerLevel)
- Mappings:
Namespace Name Mixin selector official bLcdz;b(I)Iintermediary method_10487Lnet/minecraft/class_2457;method_10487(I)Inamed getWireColorLnet/minecraft/block/RedstoneWireBlock;getWireColor(I)I
-
addPoweredParticles
private void addPoweredParticles(World world, Random random, BlockPos pos, Vec3d color, Direction direction, Direction direction2, float float2, float float3)
- Mappings:
Namespace Name Mixin selector official aLcdz;a(Lbvr;Ljava/util/Random;Lgb;Ldma;Lgg;Lgg;FF)Vintermediary method_27936Lnet/minecraft/class_2457;method_27936(Lnet/minecraft/class_1937;Ljava/util/Random;Lnet/minecraft/class_2338;Lnet/minecraft/class_243;Lnet/minecraft/class_2350;Lnet/minecraft/class_2350;FF)Vnamed addPoweredParticlesLnet/minecraft/block/RedstoneWireBlock;addPoweredParticles(Lnet/minecraft/world/World;Ljava/util/Random;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Direction;Lnet/minecraft/util/math/Direction;FF)V
-
randomDisplayTick
public void randomDisplayTick(BlockState state, World world, BlockPos pos, Random random)
- 覆盖:
randomDisplayTick在类中Block- Mappings:
Namespace Name Mixin selector official aLbyq;a(Lcjr;Lbvr;Lgb;Ljava/util/Random;)Vintermediary method_9496Lnet/minecraft/class_2248;method_9496(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Ljava/util/Random;)Vnamed randomDisplayTickLnet/minecraft/block/Block;randomDisplayTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
-
rotate
public BlockState rotate(BlockState state, BlockRotation rotation)
Applies a block rotation to a block state.By default, this returns the provided block state.
- 覆盖:
rotate在类中AbstractBlock- 返回:
- the rotated block state
- Mappings:
Namespace Name Mixin selector official aLcjq;a(Lcjr;Lcek;)Lcjr;intermediary method_9598Lnet/minecraft/class_4970;method_9598(Lnet/minecraft/class_2680;Lnet/minecraft/class_2470;)Lnet/minecraft/class_2680;named rotateLnet/minecraft/block/AbstractBlock;rotate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/block/BlockState;
-
mirror
public BlockState mirror(BlockState state, BlockMirror mirror)
- 覆盖:
mirror在类中AbstractBlock- Mappings:
Namespace Name Mixin selector official aLcjq;a(Lcjr;Lccy;)Lcjr;intermediary method_9569Lnet/minecraft/class_4970;method_9569(Lnet/minecraft/class_2680;Lnet/minecraft/class_2415;)Lnet/minecraft/class_2680;named mirrorLnet/minecraft/block/AbstractBlock;mirror(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockMirror;)Lnet/minecraft/block/BlockState;
-
appendProperties
protected void appendProperties(StateManager.Builder<Block,BlockState> builder)
- 覆盖:
appendProperties在类中Block- Mappings:
Namespace Name Mixin selector official aLbyq;a(Lcjs$a;)Vintermediary method_9515Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)Vnamed appendPropertiesLnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
-
onUse
public ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
Called when this block is used by a player. This, by default, is bound to using the right mouse button.This method is called on both the logical client and logical server, so take caution when overriding this method. The logical side can be checked using
world.isClient().If the action result is successful on a logical client, then the action will be sent to the logical server for processing.
- 覆盖:
onUse在类中AbstractBlock- 返回:
- an action result that specifies if using the block was successful.
- Mappings:
Namespace Name Mixin selector official aLcjq;a(Lcjr;Lbvr;Lgb;Lbjf;Larf;Ldlw;)Larg;intermediary method_9534Lnet/minecraft/class_4970;method_9534(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_3965;)Lnet/minecraft/class_1269;named onUseLnet/minecraft/block/AbstractBlock;onUse(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/util/hit/BlockHitResult;)Lnet/minecraft/util/ActionResult;
-
updateForNewState
private void updateForNewState(World world, BlockPos pos, BlockState oldState, BlockState newState)
- Mappings:
Namespace Name Mixin selector official aLcdz;a(Lbvr;Lgb;Lcjr;Lcjr;)Vintermediary method_28482Lnet/minecraft/class_2457;method_28482(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;)Vnamed updateForNewStateLnet/minecraft/block/RedstoneWireBlock;updateForNewState(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;)V
-
-