类 DoorBlock
- java.lang.Object
-
- net.minecraft.block.AbstractBlock
-
- net.minecraft.block.Block
-
- net.minecraft.block.DoorBlock
-
- 所有已实现的接口:
ItemConvertible
public class DoorBlock extends Block
- Mappings:
Namespace Name official camintermediary net/minecraft/class_2323named net/minecraft/block/DoorBlock
-
-
嵌套类概要
-
从类继承的嵌套类/接口 net.minecraft.block.Block
Block.NeighborGroup
-
从类继承的嵌套类/接口 net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
-
-
字段概要
字段 修饰符和类型 字段 说明 protected static VoxelShapeEAST_SHAPEstatic DirectionPropertyFACINGprotected static floatfield_31083static EnumProperty<DoubleBlockHalf>HALFstatic EnumProperty<DoorHinge>HINGEprotected static VoxelShapeNORTH_SHAPEstatic BooleanPropertyOPENstatic BooleanPropertyPOWEREDprotected static VoxelShapeSOUTH_SHAPEprotected static VoxelShapeWEST_SHAPE-
从类继承的字段 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
-
-
构造器概要
构造器 限定符 构造器 说明 protectedDoorBlock(AbstractBlock.Settings settings)
-
方法概要
-
从类继承的方法 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, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toString
-
从类继承的方法 net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getLootTableId, getMaxModelOffset, getOffsetType, getOpacity, getRaycastShape, getRenderType, getSidesShape, getStrongRedstonePower, getWeakRedstonePower, hasComparatorOutput, hasSidedTransparency, isSideInvisible, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, prepare, randomTick, scheduledTick
-
-
-
-
字段详细资料
-
FACING
public static final DirectionProperty FACING
- Mappings:
Namespace Name Mixin selector official aLcam;a:Lckl;intermediary field_10938Lnet/minecraft/class_2323;field_10938:Lnet/minecraft/class_2753;named FACINGLnet/minecraft/block/DoorBlock;FACING:Lnet/minecraft/state/property/DirectionProperty;
-
OPEN
public static final BooleanProperty OPEN
- Mappings:
Namespace Name Mixin selector official bLcam;b:Lcki;intermediary field_10945Lnet/minecraft/class_2323;field_10945:Lnet/minecraft/class_2746;named OPENLnet/minecraft/block/DoorBlock;OPEN:Lnet/minecraft/state/property/BooleanProperty;
-
HINGE
public static final EnumProperty<DoorHinge> HINGE
- Mappings:
Namespace Name Mixin selector official cLcam;c:Lckp;intermediary field_10941Lnet/minecraft/class_2323;field_10941:Lnet/minecraft/class_2754;named HINGELnet/minecraft/block/DoorBlock;HINGE:Lnet/minecraft/state/property/EnumProperty;
-
POWERED
public static final BooleanProperty POWERED
- Mappings:
Namespace Name Mixin selector official dLcam;d:Lcki;intermediary field_10940Lnet/minecraft/class_2323;field_10940:Lnet/minecraft/class_2746;named POWEREDLnet/minecraft/block/DoorBlock;POWERED:Lnet/minecraft/state/property/BooleanProperty;
-
HALF
public static final EnumProperty<DoubleBlockHalf> HALF
- Mappings:
Namespace Name Mixin selector official eLcam;e:Lckp;intermediary field_10946Lnet/minecraft/class_2323;field_10946:Lnet/minecraft/class_2754;named HALFLnet/minecraft/block/DoorBlock;HALF:Lnet/minecraft/state/property/EnumProperty;
-
field_31083
protected static final float field_31083
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official fLcam;f:Fintermediary field_31083Lnet/minecraft/class_2323;field_31083:Fnamed field_31083Lnet/minecraft/block/DoorBlock;field_31083:F
-
NORTH_SHAPE
protected static final VoxelShape NORTH_SHAPE
- Mappings:
Namespace Name Mixin selector official gLcam;g:Ldmt;intermediary field_10942Lnet/minecraft/class_2323;field_10942:Lnet/minecraft/class_265;named NORTH_SHAPELnet/minecraft/block/DoorBlock;NORTH_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
SOUTH_SHAPE
protected static final VoxelShape SOUTH_SHAPE
- Mappings:
Namespace Name Mixin selector official hLcam;h:Ldmt;intermediary field_10939Lnet/minecraft/class_2323;field_10939:Lnet/minecraft/class_265;named SOUTH_SHAPELnet/minecraft/block/DoorBlock;SOUTH_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
EAST_SHAPE
protected static final VoxelShape EAST_SHAPE
- Mappings:
Namespace Name Mixin selector official iLcam;i:Ldmt;intermediary field_10944Lnet/minecraft/class_2323;field_10944:Lnet/minecraft/class_265;named EAST_SHAPELnet/minecraft/block/DoorBlock;EAST_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
WEST_SHAPE
protected static final VoxelShape WEST_SHAPE
- Mappings:
Namespace Name Mixin selector official jLcam;j:Ldmt;intermediary field_10943Lnet/minecraft/class_2323;field_10943:Lnet/minecraft/class_265;named WEST_SHAPELnet/minecraft/block/DoorBlock;WEST_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
-
构造器详细资料
-
DoorBlock
protected DoorBlock(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
-
-
方法详细资料
-
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;
-
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;
-
onBreak
public void onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player)
- 覆盖:
onBreak在类中Block- Mappings:
Namespace Name Mixin selector official aLbyq;a(Lbvr;Lgb;Lcjr;Lbjf;)Vintermediary method_9576Lnet/minecraft/class_2248;method_9576(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_1657;)Vnamed onBreakLnet/minecraft/block/Block;onBreak(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;)V
-
canPathfindThrough
public boolean canPathfindThrough(BlockState state, BlockView world, BlockPos pos, NavigationType type)
- 覆盖:
canPathfindThrough在类中AbstractBlock- Mappings:
Namespace Name Mixin selector official aLcjq;a(Lcjr;Lbuv;Lgb;Ldgb;)Zintermediary method_9516Lnet/minecraft/class_4970;method_9516(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_10;)Znamed canPathfindThroughLnet/minecraft/block/AbstractBlock;canPathfindThrough(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/ai/pathing/NavigationType;)Z
-
getOpenSoundEventId
private int getOpenSoundEventId()
- Mappings:
Namespace Name Mixin selector official cLcam;c()Iintermediary method_10034Lnet/minecraft/class_2323;method_10034()Inamed getOpenSoundEventIdLnet/minecraft/block/DoorBlock;getOpenSoundEventId()I
-
getCloseSoundEventId
private int getCloseSoundEventId()
- Mappings:
Namespace Name Mixin selector official eLcam;e()Iintermediary method_10032Lnet/minecraft/class_2323;method_10032()Inamed getCloseSoundEventIdLnet/minecraft/block/DoorBlock;getCloseSoundEventId()I
-
getPlacementState
@Nullable public @Nullable 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;
-
onPlaced
public void onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)
- 覆盖:
onPlaced在类中Block- Mappings:
Namespace Name Mixin selector official aLbyq;a(Lbvr;Lgb;Lcjr;Lasy;Lbpr;)Vintermediary method_9567Lnet/minecraft/class_2248;method_9567(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;)Vnamed onPlacedLnet/minecraft/block/Block;onPlaced(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;)V
-
getHinge
private DoorHinge getHinge(ItemPlacementContext ctx)
- Mappings:
Namespace Name Mixin selector official bLcam;b(Lbrr;)Lckm;intermediary method_10035Lnet/minecraft/class_2323;method_10035(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2750;named getHingeLnet/minecraft/block/DoorBlock;getHinge(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/enums/DoorHinge;
-
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;
-
isOpen
public boolean isOpen(BlockState state)
- Mappings:
Namespace Name Mixin selector official hLcam;h(Lcjr;)Zintermediary method_30841Lnet/minecraft/class_2323;method_30841(Lnet/minecraft/class_2680;)Znamed isOpenLnet/minecraft/block/DoorBlock;isOpen(Lnet/minecraft/block/BlockState;)Z
-
setOpen
public void setOpen(@Nullable @Nullable Entity entity, World world, BlockState state, BlockPos pos, boolean open)
- Mappings:
Namespace Name Mixin selector official aLcam;a(Lasl;Lbvr;Lcjr;Lgb;Z)Vintermediary method_10033Lnet/minecraft/class_2323;method_10033(Lnet/minecraft/class_1297;Lnet/minecraft/class_1937;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Z)Vnamed setOpenLnet/minecraft/block/DoorBlock;setOpen(Lnet/minecraft/entity/Entity;Lnet/minecraft/world/World;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Z)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
-
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
-
playOpenCloseSound
private void playOpenCloseSound(World world, BlockPos pos, boolean open)
- Mappings:
Namespace Name Mixin selector official aLcam;a(Lbvr;Lgb;Z)Vintermediary method_10036Lnet/minecraft/class_2323;method_10036(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Z)Vnamed playOpenCloseSoundLnet/minecraft/block/DoorBlock;playOpenCloseSound(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Z)V
-
getPistonBehavior
public PistonBehavior getPistonBehavior(BlockState state)
- 覆盖:
getPistonBehavior在类中AbstractBlock- Mappings:
Namespace Name Mixin selector official dLcjq;d(Lcjr;)Lddy;intermediary method_9527Lnet/minecraft/class_4970;method_9527(Lnet/minecraft/class_2680;)Lnet/minecraft/class_3619;named getPistonBehaviorLnet/minecraft/block/AbstractBlock;getPistonBehavior(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/piston/PistonBehavior;
-
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;
-
getRenderingSeed
public long getRenderingSeed(BlockState state, BlockPos pos)
- 覆盖:
getRenderingSeed在类中AbstractBlock- Mappings:
Namespace Name Mixin selector official aLcjq;a(Lcjr;Lgb;)Jintermediary method_9535Lnet/minecraft/class_4970;method_9535(Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;)Jnamed getRenderingSeedLnet/minecraft/block/AbstractBlock;getRenderingSeed(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)J
-
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
-
isWoodenDoor
public static boolean isWoodenDoor(World world, BlockPos pos)
- Mappings:
Namespace Name Mixin selector official aLcam;a(Lbvr;Lgb;)Zintermediary method_24795Lnet/minecraft/class_2323;method_24795(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Znamed isWoodenDoorLnet/minecraft/block/DoorBlock;isWoodenDoor(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
-
isWoodenDoor
public static boolean isWoodenDoor(BlockState state)
- Mappings:
Namespace Name Mixin selector official nLcam;n(Lcjr;)Zintermediary method_24796Lnet/minecraft/class_2323;method_24796(Lnet/minecraft/class_2680;)Znamed isWoodenDoorLnet/minecraft/block/DoorBlock;isWoodenDoor(Lnet/minecraft/block/BlockState;)Z
-
-