Package net.minecraft.block
Class DoorBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.DoorBlock
- Mappings:
Namespace Name official avfintermediary net/minecraft/class_129named net/minecraft/block/DoorBlock
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DirectionPropertystatic final EnumPropertystatic final EnumPropertystatic final BooleanPropertystatic final BooleanPropertyFields inherited from class net.minecraft.block.Block
blastResistance, BLOCK_STATES, blockEntity, boundingBoxMaxX, boundingBoxMaxY, boundingBoxMaxZ, boundingBoxMinX, boundingBoxMinY, boundingBoxMinZ, field_483, field_484, field_486, field_487, field_7261, field_7262, field_7263, field_7264, field_7265, field_7266, field_7267, field_7268, field_9285, fullBlock, hardness, lightLevel, material, opacity, particleGravity, randomTicks, REGISTRY, slipperiness, soundGroup, stateManager, stats, transluscent, useNeighbourLight -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StateManagerReturns a new state manager with a property array.booleanblocksMovement(BlockView view, BlockPos pos) booleancanBePlacedAtPos(World world, BlockPos pos) Returns whether the current block can be placed at a certainBlockPosgetBlockState(BlockState state, BlockView view, BlockPos pos) Returns the current block's blockstate at a certain positiongetCollisionBox(World world, BlockPos pos, BlockState state) Returns a box by adding the block's current location and the block's corresponding value in its Bounding BoxintgetData(BlockState state) Returns the data value for a blockstate Throws anIllegalArmumentExceptionas this method does not workgetDropItem(BlockState blockState, Random random, int state) Returns the item that must be dropped when the block is brokengetPickItem(World world, BlockPos pos) Called when a player presses the pick block key while facing the block.intReturns the block's piston interaction type, as provided by it's material.Returns the appropriate RenderLayer for a block.getSelectionBox(World world, BlockPos pos) booleanprivate voidmethod_306(int int2) method_414(World world, BlockPos pos, Vec3d vec1, Vec3d vec2) voidmethod_8742(World world, BlockPos blockPos, boolean bool) protected static intmethod_8743(int int2) static intmethod_8744(BlockView blockView, BlockPos blockPos) static Directionmethod_8745(int int2) static booleanmethod_8746(BlockView blockView, BlockPos blockPos) protected static booleanmethod_8747(int int2) static Directionmethod_8748(BlockView blockView, BlockPos blockPos) protected static booleanmethod_8749(int int2) protected static booleanmethod_8750(int int2) private ItemvoidneighborUpdate(World world, BlockPos pos, BlockState state, Block block) Runs when its adjacent blocks are updated.voidonBreakByPlayer(World world, BlockPos pos, BlockState state, PlayerEntity player) Runs when the block is broken by a player.booleanonUse(World world, BlockPos pos, BlockState state, PlayerEntity player, Direction direction, float float2, float float3, float float4) Runs when the block is used, i.e.booleanReturns whether the block can be rendered as a normal blockvoidsetBoundingBox(BlockView view, BlockPos pos) stateFromData(int data) Returns a blockstate of the current block from it's idMethods inherited from class net.minecraft.block.Block
appendCollisionBoxes, appendItemStacks, areBlocksEqual, calcBlockBreakingData, canBePlacedAdjacent, canBeReplaced, canCollide, createStackFromBlock, disableStats, dropAsItem, dropExperience, emitsRedstonePower, get, getAmbientOcclusionLightLevel, getBlastResistance, getBlendColor, getBlockColor, getBlockFromItem, getBlockType, getBonusDrops, getBrightness, getByBlockState, getById, getColor, getColor, getComparatorOutput, getDefaultState, getDropCount, getIdByBlock, getItemGroup, getLightLevel, getMaterial, getMaterialColor, getMaxX, getMaxY, getMaxZ, getMeta, getMeta, getMinX, getMinY, getMinZ, getOpacity, 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_8634, method_8666, onBlockBreak, onBlockBreakStart, onBreakByPlayer, onBreaking, onCreation, onDestroyedByExplosion, onEntityCollision, onEntityCollision, onEvent, onLandedUpon, onPlaced, onSteppedOn, onUpdateTick, rainTick, randomDisplayTick, randomDropAsItem, requiresSilkTouch, scheduledTick, setBlockItemBounds, setBlockSoundGroup, setBoundingBox, setDefaultState, setEntityVelocity, setItemGroup, setLightLevel, setOpacity, setResistance, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, ticksRandomly, usesNeighbourLight
-
Field Details
-
FACING
- Mappings:
Namespace Name Mixin selector official aLavf;a:Lbeu;intermediary field_9372Lnet/minecraft/class_129;field_9372:Lnet/minecraft/class_2244;named FACINGLnet/minecraft/block/DoorBlock;FACING:Lnet/minecraft/state/property/DirectionProperty;
-
OPEN
- Mappings:
Namespace Name Mixin selector official bLavf;b:Lbet;intermediary field_9373Lnet/minecraft/class_129;field_9373:Lnet/minecraft/class_2243;named OPENLnet/minecraft/block/DoorBlock;OPEN:Lnet/minecraft/state/property/BooleanProperty;
-
HINGE
- Mappings:
Namespace Name Mixin selector official MLavf;M:Lbev;intermediary field_9369Lnet/minecraft/class_129;field_9369:Lnet/minecraft/class_2245;named HINGELnet/minecraft/block/DoorBlock;HINGE:Lnet/minecraft/state/property/EnumProperty;
-
POWERED
- Mappings:
Namespace Name Mixin selector official NLavf;N:Lbet;intermediary field_9370Lnet/minecraft/class_129;field_9370:Lnet/minecraft/class_2243;named POWEREDLnet/minecraft/block/DoorBlock;POWERED:Lnet/minecraft/state/property/BooleanProperty;
-
HALF
- Mappings:
Namespace Name Mixin selector official OLavf;O:Lbev;intermediary field_9371Lnet/minecraft/class_129;field_9371:Lnet/minecraft/class_2245;named HALFLnet/minecraft/block/DoorBlock;HALF:Lnet/minecraft/state/property/EnumProperty;
-
-
Constructor Details
-
DoorBlock
- Parameters:
material- The block's material- Mappings:
Namespace Name Mixin selector official <init>Latr;<init>(Lbof;)Vintermediary <init>Lnet/minecraft/class_197;<init>(Lnet/minecraft/class_63;)Vnamed <init>Lnet/minecraft/block/Block;<init>(Lnet/minecraft/block/Material;)V
-
-
Method Details
-
hasTransperancy
public boolean hasTransperancy()- Overrides:
hasTransperancyin classBlock- Mappings:
Namespace Name Mixin selector official cLatr;c()Zintermediary method_449Lnet/minecraft/class_197;method_449()Znamed hasTransperancyLnet/minecraft/block/Block;hasTransperancy()Z
-
blocksMovement
- Overrides:
blocksMovementin classBlock- Mappings:
Namespace Name Mixin selector official bLatr;b(Lard;Ldt;)Zintermediary method_8663Lnet/minecraft/class_197;method_8663(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Znamed blocksMovementLnet/minecraft/block/Block;blocksMovement(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Z
-
renderAsNormalBlock
public boolean renderAsNormalBlock()Returns whether the block can be rendered as a normal block- Overrides:
renderAsNormalBlockin classBlock- Returns:
- Whether the block can be rendered as a normal block
- Mappings:
Namespace Name Mixin selector official dLatr;d()Zintermediary method_441Lnet/minecraft/class_197;method_441()Znamed renderAsNormalBlockLnet/minecraft/block/Block;renderAsNormalBlock()Z
-
getSelectionBox
- Overrides:
getSelectionBoxin classBlock- Mappings:
Namespace Name Mixin selector official aLatr;a(Laqu;Ldt;)Lbrt;intermediary method_8657Lnet/minecraft/class_197;method_8657(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Lnet/minecraft/class_231;named getSelectionBoxLnet/minecraft/block/Block;getSelectionBox(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Box;
-
getCollisionBox
Returns a box by adding the block's current location and the block's corresponding value in its Bounding Box- Overrides:
getCollisionBoxin classBlock- Parameters:
world- The world that the block has been placedpos- The block's positionstate- The block's BlockState- Returns:
- The Collision box
- Mappings:
Namespace Name Mixin selector official aLatr;a(Laqu;Ldt;Lbec;)Lbrt;intermediary method_8640Lnet/minecraft/class_197;method_8640(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Lnet/minecraft/class_231;named getCollisionBoxLnet/minecraft/block/Block;getCollisionBox(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/util/math/Box;
-
setBoundingBox
- Overrides:
setBoundingBoxin classBlock- Mappings:
Namespace Name Mixin selector official aLatr;a(Lard;Ldt;)Vintermediary method_8652Lnet/minecraft/class_197;method_8652(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Vnamed setBoundingBoxLnet/minecraft/block/Block;setBoundingBox(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)V
-
method_306
private void method_306(int int2) - Mappings:
Namespace Name Mixin selector official kLavf;k(I)Vintermediary method_306Lnet/minecraft/class_129;method_306(I)Vnamed method_306Lnet/minecraft/block/DoorBlock;method_306(I)V
-
onUse
public boolean onUse(World world, BlockPos pos, BlockState state, PlayerEntity player, Direction direction, float float2, float float3, float float4) Runs when the block is used, i.e. right clicked in most cases. It is similar to the same method in Item, but this method is called only when the player uses it when the block is placed, not when the player is holding the BlockItem.- Overrides:
onUsein classBlock- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockStateplayer- The player who used the blockdirection- The direction that the block is facing- Returns:
- Whether the action is succesful
- Mappings:
Namespace Name Mixin selector official aLatr;a(Laqu;Ldt;Lbec;Lahd;Lej;FFF)Zintermediary method_421Lnet/minecraft/class_197;method_421(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_988;Lnet/minecraft/class_1354;FFF)Znamed onUseLnet/minecraft/block/Block;onUse(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/math/Direction;FFF)Z
-
method_8742
- Mappings:
Namespace Name Mixin selector official aLavf;a(Laqu;Ldt;Z)Vintermediary method_8742Lnet/minecraft/class_129;method_8742(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Z)Vnamed method_8742Lnet/minecraft/block/DoorBlock;method_8742(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Z)V
-
neighborUpdate
Runs when its adjacent blocks are updated. It will also run when the block is placed or removed as Air is being updated.- Overrides:
neighborUpdatein classBlock- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockStateblock- The adjacent Block that updated the current block- Mappings:
Namespace Name Mixin selector official aLatr;a(Laqu;Ldt;Lbec;Latr;)Vintermediary method_8641Lnet/minecraft/class_197;method_8641(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_197;)Vnamed neighborUpdateLnet/minecraft/block/Block;neighborUpdate(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/Block;)V
-
getDropItem
Returns the item that must be dropped when the block is broken- Overrides:
getDropItemin classBlock- Parameters:
blockState- The block's BlockStaterandom- Random objectstate- State- Returns:
- The Item that drops after the block breaks
- Mappings:
Namespace Name Mixin selector official aLatr;a(Lbec;Ljava/util/Random;I)Lalq;intermediary method_398Lnet/minecraft/class_197;method_398(Lnet/minecraft/class_2232;Ljava/util/Random;I)Lnet/minecraft/class_1069;named getDropItemLnet/minecraft/block/Block;getDropItem(Lnet/minecraft/block/BlockState;Ljava/util/Random;I)Lnet/minecraft/item/Item;
-
method_414
- Overrides:
method_414in classBlock- Mappings:
Namespace Name Mixin selector official aLatr;a(Laqu;Ldt;Lbrw;Lbrw;)Lbru;intermediary method_414Lnet/minecraft/class_197;method_414(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_236;Lnet/minecraft/class_236;)Lnet/minecraft/class_234;named method_414Lnet/minecraft/block/Block;method_414(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/hit/BlockHitResult;
-
canBePlacedAtPos
Returns whether the current block can be placed at a certainBlockPos- Overrides:
canBePlacedAtPosin classBlock- Returns:
- Whether the current block can be placed at a BlockPos
- Mappings:
Namespace Name Mixin selector official cLatr;c(Laqu;Ldt;)Zintermediary method_8673Lnet/minecraft/class_197;method_8673(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Znamed canBePlacedAtPosLnet/minecraft/block/Block;canBePlacedAtPos(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
-
getPistonInteractionType
public int getPistonInteractionType()Returns the block's piston interaction type, as provided by it's material.- Overrides:
getPistonInteractionTypein classBlock- Returns:
- Current block's piston interaction type
- Mappings:
Namespace Name Mixin selector official iLatr;i()Iintermediary method_453Lnet/minecraft/class_197;method_453()Inamed getPistonInteractionTypeLnet/minecraft/block/Block;getPistonInteractionType()I
-
method_8744
- Mappings:
Namespace Name Mixin selector official eLavf;e(Lard;Ldt;)Iintermediary method_8744Lnet/minecraft/class_129;method_8744(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Inamed method_8744Lnet/minecraft/block/DoorBlock;method_8744(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)I
-
getPickItem
Called when a player presses the pick block key while facing the block. It returns the item that must be placed into the player's inventory.- Overrides:
getPickItemin classBlock- Returns:
- The Item that must be placed into the player's inventory
- Mappings:
Namespace Name Mixin selector official bLatr;b(Laqu;Ldt;)Lalq;intermediary method_8667Lnet/minecraft/class_197;method_8667(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Lnet/minecraft/class_1069;named getPickItemLnet/minecraft/block/Block;getPickItem(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/item/Item;
-
method_8751
- Mappings:
Namespace Name Mixin selector official jLavf;j()Lalq;intermediary method_8751Lnet/minecraft/class_129;method_8751()Lnet/minecraft/class_1069;named method_8751Lnet/minecraft/block/DoorBlock;method_8751()Lnet/minecraft/item/Item;
-
onBreakByPlayer
Runs when the block is broken by a player.- Overrides:
onBreakByPlayerin classBlock- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockStateplayer- The player who broke the block- Mappings:
Namespace Name Mixin selector official aLatr;a(Laqu;Ldt;Lbec;Lahd;)Vintermediary method_8644Lnet/minecraft/class_197;method_8644(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_988;)Vnamed onBreakByPlayerLnet/minecraft/block/Block;onBreakByPlayer(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;)V
-
getRenderLayerType
Returns the appropriate RenderLayer for a block. Only called on the client.- Overrides:
getRenderLayerTypein classBlock- Returns:
- The block's RenderLayer
- Mappings:
Namespace Name Mixin selector official kLatr;k()Laql;intermediary method_8687Lnet/minecraft/class_197;method_8687()Lnet/minecraft/class_2165;named getRenderLayerTypeLnet/minecraft/block/Block;getRenderLayerType()Lnet/minecraft/client/render/BlockRenderLayer;
-
getBlockState
Returns the current block's blockstate at a certain position- Overrides:
getBlockStatein classBlock- Parameters:
state- The original blockstateview- BlockView instancepos- The block's position- Returns:
- state
- Mappings:
Namespace Name Mixin selector official aLatr;a(Lbec;Lard;Ldt;)Lbec;intermediary method_8656Lnet/minecraft/class_197;method_8656(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_2232;named getBlockStateLnet/minecraft/block/Block;getBlockState(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
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 aLatr;a(I)Lbec;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 cLatr;c(Lbec;)Iintermediary method_8671Lnet/minecraft/class_197;method_8671(Lnet/minecraft/class_2232;)Inamed getDataLnet/minecraft/block/Block;getData(Lnet/minecraft/block/BlockState;)I
-
method_8743
protected static int method_8743(int int2) - Mappings:
Namespace Name Mixin selector official bLavf;b(I)Iintermediary method_8743Lnet/minecraft/class_129;method_8743(I)Inamed method_8743Lnet/minecraft/block/DoorBlock;method_8743(I)I
-
method_8746
- Mappings:
Namespace Name Mixin selector official fLavf;f(Lard;Ldt;)Zintermediary method_8746Lnet/minecraft/class_129;method_8746(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Znamed method_8746Lnet/minecraft/block/DoorBlock;method_8746(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Z
-
method_8748
- Mappings:
Namespace Name Mixin selector official hLavf;h(Lard;Ldt;)Lej;intermediary method_8748Lnet/minecraft/class_129;method_8748(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_1354;named method_8748Lnet/minecraft/block/DoorBlock;method_8748(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Direction;
-
method_8745
- Mappings:
Namespace Name Mixin selector official fLavf;f(I)Lej;intermediary method_8745Lnet/minecraft/class_129;method_8745(I)Lnet/minecraft/class_1354;named method_8745Lnet/minecraft/block/DoorBlock;method_8745(I)Lnet/minecraft/util/math/Direction;
-
method_8747
protected static boolean method_8747(int int2) - Mappings:
Namespace Name Mixin selector official gLavf;g(I)Zintermediary method_8747Lnet/minecraft/class_129;method_8747(I)Znamed method_8747Lnet/minecraft/block/DoorBlock;method_8747(I)Z
-
method_8749
protected static boolean method_8749(int int2) - Mappings:
Namespace Name Mixin selector official iLavf;i(I)Zintermediary method_8749Lnet/minecraft/class_129;method_8749(I)Znamed method_8749Lnet/minecraft/block/DoorBlock;method_8749(I)Z
-
method_8750
protected static boolean method_8750(int int2) - Mappings:
Namespace Name Mixin selector official jLavf;j(I)Zintermediary method_8750Lnet/minecraft/class_129;method_8750(I)Znamed method_8750Lnet/minecraft/block/DoorBlock;method_8750(I)Z
-
appendProperties
Returns a new state manager with a property array.- Overrides:
appendPropertiesin classBlock- Returns:
- New state manager
- Mappings:
Namespace Name Mixin selector official eLatr;e()Lbed;intermediary method_8676Lnet/minecraft/class_197;method_8676()Lnet/minecraft/class_2233;named appendPropertiesLnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;
-