类 AbstractSignBlock
- java.lang.Object
-
- net.minecraft.block.AbstractBlock
-
- net.minecraft.block.Block
-
- net.minecraft.block.BlockWithEntity
-
- net.minecraft.block.AbstractSignBlock
-
- 直接已知子类:
SignBlock,WallSignBlock
public abstract class AbstractSignBlock extends BlockWithEntity implements Waterloggable
- Mappings:
Namespace Name official cesintermediary net/minecraft/class_2478named net/minecraft/block/AbstractSignBlock
-
-
嵌套类概要
-
从类继承的嵌套类/接口 net.minecraft.block.Block
Block.NeighborGroup
-
从类继承的嵌套类/接口 net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
-
-
字段概要
字段 修饰符和类型 字段 说明 protected static floatfield_31243protected static VoxelShapeSHAPEprivate SignTypetypestatic BooleanPropertyWATERLOGGED-
从类继承的字段 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
-
-
构造器概要
构造器 限定符 构造器 说明 protectedAbstractSignBlock(AbstractBlock.Settings settings, SignType type)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleancanMobSpawnInside()BlockEntitycreateBlockEntity(BlockPos pos, BlockState state)FluidStategetFluidState(BlockState state)VoxelShapegetOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)SignTypegetSignType()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.ActionResultonUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)Called when this block is used by a player.-
从类继承的方法 net.minecraft.block.BlockWithEntity
checkType, createScreenHandlerFactory, getRenderType, onSyncedBlockEvent
-
从类继承的方法 net.minecraft.block.Block
addStacksForDisplay, afterBreak, appendProperties, appendTooltip, asBlock, asItem, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStacks, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getPlacementState, 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, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toString
-
从类继承的方法 net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canPlaceAt, canReplace, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getLootTableId, getMaxModelOffset, getOffsetType, getOpacity, getPistonBehavior, getRaycastShape, getRenderingSeed, getSidesShape, getStrongRedstonePower, getWeakRedstonePower, hasComparatorOutput, hasSidedTransparency, isSideInvisible, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, prepare, randomTick, rotate, scheduledTick
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
从接口继承的方法 net.minecraft.block.BlockEntityProvider
getGameEventListener, getTicker
-
从接口继承的方法 net.minecraft.block.Waterloggable
canFillWithFluid, getBucketFillSound, tryDrainFluid, tryFillWithFluid
-
-
-
-
字段详细资料
-
WATERLOGGED
public static final BooleanProperty WATERLOGGED
- Mappings:
Namespace Name Mixin selector official aLces;a:Lcki;intermediary field_11491Lnet/minecraft/class_2478;field_11491:Lnet/minecraft/class_2746;named WATERLOGGEDLnet/minecraft/block/AbstractSignBlock;WATERLOGGED:Lnet/minecraft/state/property/BooleanProperty;
-
field_31243
protected static final float field_31243
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official bLces;b:Fintermediary field_31243Lnet/minecraft/class_2478;field_31243:Fnamed field_31243Lnet/minecraft/block/AbstractSignBlock;field_31243:F
-
SHAPE
protected static final VoxelShape SHAPE
- Mappings:
Namespace Name Mixin selector official cLces;c:Ldmt;intermediary field_11492Lnet/minecraft/class_2478;field_11492:Lnet/minecraft/class_265;named SHAPELnet/minecraft/block/AbstractSignBlock;SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
type
private final SignType type
- Mappings:
Namespace Name Mixin selector official dLces;d:Lcld;intermediary field_21675Lnet/minecraft/class_2478;field_21675:Lnet/minecraft/class_4719;named typeLnet/minecraft/block/AbstractSignBlock;type:Lnet/minecraft/util/SignType;
-
-
构造器详细资料
-
AbstractSignBlock
protected AbstractSignBlock(AbstractBlock.Settings settings, SignType type)
- Mappings:
Namespace Name Mixin selector official <init>Lces;<init>(Lcjq$c;Lcld;)Vintermediary <init>Lnet/minecraft/class_2478;<init>(Lnet/minecraft/class_4970$class_2251;Lnet/minecraft/class_4719;)Vnamed <init>Lnet/minecraft/block/AbstractSignBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;Lnet/minecraft/util/SignType;)V
-
-
方法详细资料
-
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;
-
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;
-
canMobSpawnInside
public boolean canMobSpawnInside()
- 覆盖:
canMobSpawnInside在类中Block- Mappings:
Namespace Name Mixin selector official al_Lbyq;al_()Zintermediary method_9538Lnet/minecraft/class_2248;method_9538()Znamed canMobSpawnInsideLnet/minecraft/block/Block;canMobSpawnInside()Z
-
createBlockEntity
public BlockEntity createBlockEntity(BlockPos pos, BlockState state)
- 指定者:
createBlockEntity在接口中BlockEntityProvider- Mappings:
Namespace Name Mixin selector official aLcax;a(Lgb;Lcjr;)Lchp;intermediary method_10123Lnet/minecraft/class_2343;method_10123(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Lnet/minecraft/class_2586;named createBlockEntityLnet/minecraft/block/BlockEntityProvider;createBlockEntity(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/entity/BlockEntity;
-
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;
-
getFluidState
public FluidState getFluidState(BlockState state)
- 覆盖:
getFluidState在类中AbstractBlock- Mappings:
Namespace Name Mixin selector official c_Lcjq;c_(Lcjr;)Ldds;intermediary method_9545Lnet/minecraft/class_4970;method_9545(Lnet/minecraft/class_2680;)Lnet/minecraft/class_3610;named getFluidStateLnet/minecraft/block/AbstractBlock;getFluidState(Lnet/minecraft/block/BlockState;)Lnet/minecraft/fluid/FluidState;
-
getSignType
public SignType getSignType()
- Mappings:
Namespace Name Mixin selector official eLces;e()Lcld;intermediary method_24025Lnet/minecraft/class_2478;method_24025()Lnet/minecraft/class_4719;named getSignTypeLnet/minecraft/block/AbstractSignBlock;getSignType()Lnet/minecraft/util/SignType;
-
-