Package net.minecraft.block
Class DoorBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.DoorBlock
- Mappings:
Namespace Name official amxintermediary net/minecraft/class_129named net/minecraft/block/DoorBlock
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.block.Block
Block.OffsetType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DirectionPropertyprotected static final Boxprotected static final Boxprotected static final Boxprotected static final Boxstatic final EnumProperty<DoorBlock.HalfType>static final EnumProperty<DoorBlock.DoorType>static final BooleanPropertystatic final BooleanPropertyFields inherited from class net.minecraft.block.Block
blastResistance, BLOCK_STATES, blockEntity, blockSoundGroup, collisionBox, EMPTY_BOX, fullBlock, hardness, lightLevel, material, materialColor, opacity, particleGravity, randomTicks, REGISTRY, slipperiness, 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(BlockState state, BlockView view, BlockPos pos) intgetData(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 brokengetMaterialColor(BlockState state) Returns the block's material color from it's state Blockstates can have different material colorsgetPistonBehavior(BlockState state) Returns the appropriate RenderLayer for a block.Translates and returns the translation keybooleanisFullBoundsCubeForCulling(BlockState blockState) booleanmethod_11562(BlockState state) private intprivate intmethod_8640(World world, BlockPos blockPos, BlockState blockState) 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) private ItemvoidvoidonBreakByPlayer(World world, BlockPos pos, BlockState state, PlayerEntity player) Runs when the block is broken by a player.stateFromData(int data) Returns a blockstate of the current block from it's idbooleanuse(World world, BlockPos pos, BlockState state, PlayerEntity player, Hand hand, Direction direction, float float2, float float3, float float4) withMirror(BlockState state, BlockMirror mirror) withRotation(BlockState state, BlockRotation rotation) Methods inherited from class net.minecraft.block.Block
appendCollisionBoxes, appendCollisionBoxes, areBlocksEqual, canBePlacedAdjacent, canCollide, canMobSpawnInside, createStackFromBlock, disableStats, dropAsItem, dropExperience, get, getBlastResistance, getBlockFromItem, getBlockRenderType, getBonusDrops, getByBlockState, getById, getComparatorOutput, getDefaultState, getDropCount, getHardness, getIdByBlock, getItemGroup, getLuminance, getMaterial, getMeta, getOffsetType, getOpacity, getSoundGroup, getStateFromData, getStateFromRawId, getStateManager, getTickRate, getTranslationKey, hasBlockEntity, hasCollision, hasCollision, hasStats, isEqualTo, isFire, isFullBlock, isTransluscent, method_11557, method_11559, method_11563, method_11564, method_11565, method_11566, method_11568, method_11575, method_11576, method_11577, method_13315, method_13700, method_13701, method_13702, method_13703, method_13704, method_414, method_435, method_8638, method_8640, method_8651, method_8653, method_8654, method_8664, method_8669, onBlockBreak, onBlockBreakStart, onBreakByPlayer, onBreaking, onCreation, onDestroyedByExplosion, onEntityCollision, onEntityCollision, onLandedUpon, onPlaced, onSteppedOn, onUpdateTick, rainTick, randomDropAsItem, requiresSilkTouch, scheduledTick, setBlockSoundGroup, setDefaultState, setEntityVelocity, setItemGroup, setLightLevel, setOpacity, setResistance, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, ticksRandomly, toString, useNeighbourLight
-
Field Details
-
FACING
- Mappings:
Namespace Name Mixin selector official aLamx;a:Laty;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 bLamx;b:Latx;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 cLamx;c:Latz;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 dLamx;d:Latx;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 eLamx;e:Latz;intermediary field_9371Lnet/minecraft/class_129;field_9371:Lnet/minecraft/class_2245;named HALFLnet/minecraft/block/DoorBlock;HALF:Lnet/minecraft/state/property/EnumProperty;
-
field_12647
- Mappings:
Namespace Name Mixin selector official fLamx;f:Lbdt;intermediary field_12647Lnet/minecraft/class_129;field_12647:Lnet/minecraft/class_231;named field_12647Lnet/minecraft/block/DoorBlock;field_12647:Lnet/minecraft/util/math/Box;
-
field_12648
- Mappings:
Namespace Name Mixin selector official gLamx;g:Lbdt;intermediary field_12648Lnet/minecraft/class_129;field_12648:Lnet/minecraft/class_231;named field_12648Lnet/minecraft/block/DoorBlock;field_12648:Lnet/minecraft/util/math/Box;
-
field_12645
- Mappings:
Namespace Name Mixin selector official BLamx;B:Lbdt;intermediary field_12645Lnet/minecraft/class_129;field_12645:Lnet/minecraft/class_231;named field_12645Lnet/minecraft/block/DoorBlock;field_12645:Lnet/minecraft/util/math/Box;
-
field_12646
- Mappings:
Namespace Name Mixin selector official CLamx;C:Lbdt;intermediary field_12646Lnet/minecraft/class_129;field_12646:Lnet/minecraft/class_231;named field_12646Lnet/minecraft/block/DoorBlock;field_12646:Lnet/minecraft/util/math/Box;
-
-
Constructor Details
-
DoorBlock
- Parameters:
material- The block's material- Mappings:
Namespace Name Mixin selector official <init>Lalu;<init>(Lazs;)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
-
getCollisionBox
- Overrides:
getCollisionBoxin classBlock- Mappings:
Namespace Name Mixin selector official bLalu;b(Latl;Lajw;Lco;)Lbdt;intermediary method_11554Lnet/minecraft/class_197;method_11554(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_231;named getCollisionBoxLnet/minecraft/block/Block;getCollisionBox(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Box;
-
getTranslatedName
Translates and returns the translation key- Overrides:
getTranslatedNamein classBlock- Returns:
- Translated name
- Mappings:
Namespace Name Mixin selector official cLalu;c()Ljava/lang/String;intermediary method_480Lnet/minecraft/class_197;method_480()Ljava/lang/String;named getTranslatedNameLnet/minecraft/block/Block;getTranslatedName()Ljava/lang/String;
-
isFullBoundsCubeForCulling
- Overrides:
isFullBoundsCubeForCullingin classBlock- Mappings:
Namespace Name Mixin selector official bLalu;b(Latl;)Zintermediary method_11560Lnet/minecraft/class_197;method_11560(Lnet/minecraft/class_2232;)Znamed isFullBoundsCubeForCullingLnet/minecraft/block/Block;isFullBoundsCubeForCulling(Lnet/minecraft/block/BlockState;)Z
-
blocksMovement
- Overrides:
blocksMovementin classBlock- Mappings:
Namespace Name Mixin selector official bLalu;b(Lajw;Lco;)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
-
method_11562
- Overrides:
method_11562in classBlock- Mappings:
Namespace Name Mixin selector official cLalu;c(Latl;)Zintermediary method_11562Lnet/minecraft/class_197;method_11562(Lnet/minecraft/class_2232;)Znamed method_11562Lnet/minecraft/block/Block;method_11562(Lnet/minecraft/block/BlockState;)Z
-
method_11604
private int method_11604()- Mappings:
Namespace Name Mixin selector official eLamx;e()Iintermediary method_11604Lnet/minecraft/class_129;method_11604()Inamed method_11604Lnet/minecraft/block/DoorBlock;method_11604()I
-
method_11605
private int method_11605()- Mappings:
Namespace Name Mixin selector official gLamx;g()Iintermediary method_11605Lnet/minecraft/class_129;method_11605()Inamed method_11605Lnet/minecraft/block/DoorBlock;method_11605()I
-
getMaterialColor
Returns the block's material color from it's state Blockstates can have different material colors- Overrides:
getMaterialColorin classBlock- Parameters:
state- The Blockstate for which the material color is returned- Returns:
- materialColor
- Mappings:
Namespace Name Mixin selector official rLalu;r(Latl;)Lazt;intermediary method_8680Lnet/minecraft/class_197;method_8680(Lnet/minecraft/class_2232;)Lnet/minecraft/class_65;named getMaterialColorLnet/minecraft/block/Block;getMaterialColor(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/MaterialColor;
-
use
public boolean use(World world, BlockPos pos, BlockState state, PlayerEntity player, Hand hand, Direction direction, float float2, float float3, float float4) - Overrides:
usein classBlock- Mappings:
Namespace Name Mixin selector official aLalu;a(Lajs;Lco;Latl;Laay;Lri;Lcv;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_2961;Lnet/minecraft/class_1354;FFF)Znamed useLnet/minecraft/block/Block;use(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/util/math/Direction;FFF)Z
-
method_8742
- Mappings:
Namespace Name Mixin selector official aLamx;a(Lajs;Lco;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
-
onBreak
- Overrides:
onBreakin classBlock- Mappings:
Namespace Name Mixin selector official aLalu;a(Latl;Lajs;Lco;Lalu;Lco;)Vintermediary method_8641Lnet/minecraft/class_197;method_8641(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_197;Lnet/minecraft/class_2552;)Vnamed onBreakLnet/minecraft/block/Block;onBreak(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;Lnet/minecraft/util/math/BlockPos;)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 aLalu;a(Latl;Ljava/util/Random;I)Lafh;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;
-
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 aLalu;a(Lajs;Lco;)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
-
getPistonBehavior
- Overrides:
getPistonBehaviorin classBlock- Mappings:
Namespace Name Mixin selector official hLalu;h(Latl;)Lazv;intermediary method_11567Lnet/minecraft/class_197;method_11567(Lnet/minecraft/class_2232;)Lnet/minecraft/class_2768;named getPistonBehaviorLnet/minecraft/block/Block;getPistonBehavior(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/piston/PistonBehavior;
-
method_8744
- Mappings:
Namespace Name Mixin selector official cLamx;c(Lajw;Lco;)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
-
method_8640
- Overrides:
method_8640in classBlock- Mappings:
Namespace Name Mixin selector official aLalu;a(Lajs;Lco;Latl;)Lafj;intermediary method_8640Lnet/minecraft/class_197;method_8640(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Lnet/minecraft/class_1071;named method_8640Lnet/minecraft/block/Block;method_8640(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/item/ItemStack;
-
method_8751
- Mappings:
Namespace Name Mixin selector official hLamx;h()Lafh;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 aLalu;a(Lajs;Lco;Latl;Laay;)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 fLalu;f()Lajk;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 cLalu;c(Latl;Lajw;Lco;)Latl;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;
-
withRotation
- Overrides:
withRotationin classBlock- Mappings:
Namespace Name Mixin selector official aLalu;a(Latl;Laqi;)Latl;intermediary method_11556Lnet/minecraft/class_197;method_11556(Lnet/minecraft/class_2232;Lnet/minecraft/class_2734;)Lnet/minecraft/class_2232;named withRotationLnet/minecraft/block/Block;withRotation(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/block/BlockState;
-
withMirror
- Overrides:
withMirrorin classBlock- Mappings:
Namespace Name Mixin selector official aLalu;a(Latl;Laou;)Latl;intermediary method_11555Lnet/minecraft/class_197;method_11555(Lnet/minecraft/class_2232;Lnet/minecraft/class_2727;)Lnet/minecraft/class_2232;named withMirrorLnet/minecraft/block/Block;withMirror(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockMirror;)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 aLalu;a(I)Latl;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 eLalu;e(Latl;)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 eLamx;e(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 dLamx;d(Lajw;Lco;)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 fLamx;f(Lajw;Lco;)Lcv;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 fLamx;f(I)Lcv;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 gLamx;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 iLamx;i(I)Zintermediary method_8749Lnet/minecraft/class_129;method_8749(I)Znamed method_8749Lnet/minecraft/block/DoorBlock;method_8749(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 bLalu;b()Latm;intermediary method_8676Lnet/minecraft/class_197;method_8676()Lnet/minecraft/class_2233;named appendPropertiesLnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;
-