Package net.minecraft.block
Class TrapdoorBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.TrapdoorBlock
- Mappings:
Namespace Name official armintermediary net/minecraft/class_205named net/minecraft/block/TrapdoorBlock
-
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 Boxprotected static final Boxprotected static final Boxstatic final EnumProperty<TrapdoorBlock.TrapdoorType>static 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) booleancanBePlacedAdjacent(World world, BlockPos pos, Direction direction) Returns whether blocks can be placed adjacent to it.getCollisionBox(BlockState state, BlockView view, BlockPos pos) intgetData(BlockState state) Returns the data value for a blockstate Throws anIllegalArmumentExceptionas this method does not workReturns the appropriate RenderLayer for a block.getStateFromData(World world, BlockPos pos, Direction dir, float float2, float float3, float float4, int id, LivingEntity entity) Returns a BlockState from an idbooleanisFullBoundsCubeForCulling(BlockState blockState) booleanmethod_11562(BlockState state) protected voidmethod_11640(PlayerEntity playerEntity, World world, BlockPos blockPos, boolean bool) protected static intmethod_8938(Direction direction) protected static Directionmethod_8939(int int2) voidstateFromData(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, canBePlacedAtPos, canCollide, canMobSpawnInside, createStackFromBlock, disableStats, dropAsItem, dropExperience, get, getBlastResistance, getBlockFromItem, getBlockRenderType, getBlockState, getBonusDrops, getByBlockState, getById, getComparatorOutput, getDefaultState, getDropCount, getDropItem, getHardness, getIdByBlock, getItemGroup, getLuminance, getMaterial, getMaterialColor, getMeta, getOffsetType, getOpacity, getPistonBehavior, getSoundGroup, getStateFromRawId, getStateManager, getTickRate, getTranslatedName, 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_8640, method_8651, method_8653, method_8654, method_8664, method_8669, onBlockBreak, onBlockBreakStart, onBreakByPlayer, 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 aLarm;a:Laty;intermediary field_9751Lnet/minecraft/class_205;field_9751:Lnet/minecraft/class_2244;named FACINGLnet/minecraft/block/TrapdoorBlock;FACING:Lnet/minecraft/state/property/DirectionProperty;
-
OPEN
- Mappings:
Namespace Name Mixin selector official bLarm;b:Latx;intermediary field_9752Lnet/minecraft/class_205;field_9752:Lnet/minecraft/class_2243;named OPENLnet/minecraft/block/TrapdoorBlock;OPEN:Lnet/minecraft/state/property/BooleanProperty;
-
HALF
- Mappings:
Namespace Name Mixin selector official cLarm;c:Latz;intermediary field_9750Lnet/minecraft/class_205;field_9750:Lnet/minecraft/class_2245;named HALFLnet/minecraft/block/TrapdoorBlock;HALF:Lnet/minecraft/state/property/EnumProperty;
-
field_12811
- Mappings:
Namespace Name Mixin selector official dLarm;d:Lbdt;intermediary field_12811Lnet/minecraft/class_205;field_12811:Lnet/minecraft/class_231;named field_12811Lnet/minecraft/block/TrapdoorBlock;field_12811:Lnet/minecraft/util/math/Box;
-
field_12812
- Mappings:
Namespace Name Mixin selector official eLarm;e:Lbdt;intermediary field_12812Lnet/minecraft/class_205;field_12812:Lnet/minecraft/class_231;named field_12812Lnet/minecraft/block/TrapdoorBlock;field_12812:Lnet/minecraft/util/math/Box;
-
field_12813
- Mappings:
Namespace Name Mixin selector official fLarm;f:Lbdt;intermediary field_12813Lnet/minecraft/class_205;field_12813:Lnet/minecraft/class_231;named field_12813Lnet/minecraft/block/TrapdoorBlock;field_12813:Lnet/minecraft/util/math/Box;
-
field_12814
- Mappings:
Namespace Name Mixin selector official gLarm;g:Lbdt;intermediary field_12814Lnet/minecraft/class_205;field_12814:Lnet/minecraft/class_231;named field_12814Lnet/minecraft/block/TrapdoorBlock;field_12814:Lnet/minecraft/util/math/Box;
-
field_12809
- Mappings:
Namespace Name Mixin selector official BLarm;B:Lbdt;intermediary field_12809Lnet/minecraft/class_205;field_12809:Lnet/minecraft/class_231;named field_12809Lnet/minecraft/block/TrapdoorBlock;field_12809:Lnet/minecraft/util/math/Box;
-
field_12810
- Mappings:
Namespace Name Mixin selector official CLarm;C:Lbdt;intermediary field_12810Lnet/minecraft/class_205;field_12810:Lnet/minecraft/class_231;named field_12810Lnet/minecraft/block/TrapdoorBlock;field_12810:Lnet/minecraft/util/math/Box;
-
-
Constructor Details
-
TrapdoorBlock
- 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;
-
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
-
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
-
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
-
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_11640
protected void method_11640(@Nullable PlayerEntity playerEntity, World world, BlockPos blockPos, boolean bool) - Mappings:
Namespace Name Mixin selector official aLarm;a(Laay;Lajs;Lco;Z)Vintermediary method_11640Lnet/minecraft/class_205;method_11640(Lnet/minecraft/class_988;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Z)Vnamed method_11640Lnet/minecraft/block/TrapdoorBlock;method_11640(Lnet/minecraft/entity/player/PlayerEntity;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
-
getStateFromData
public BlockState getStateFromData(World world, BlockPos pos, Direction dir, float float2, float float3, float float4, int id, LivingEntity entity) Returns a BlockState from an id- Overrides:
getStateFromDatain classBlock- Parameters:
world- The world that the block is placed inpos- The block's positiondir- The block's direction- Mappings:
Namespace Name Mixin selector official aLalu;a(Lajs;Lco;Lcv;FFFILsw;)Latl;intermediary method_8645Lnet/minecraft/class_197;method_8645(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;FFFILnet/minecraft/class_1699;)Lnet/minecraft/class_2232;named getStateFromDataLnet/minecraft/block/Block;getStateFromData(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;FFFILnet/minecraft/entity/LivingEntity;)Lnet/minecraft/block/BlockState;
-
canBePlacedAdjacent
Returns whether blocks can be placed adjacent to it.- Overrides:
canBePlacedAdjacentin classBlock- Parameters:
world- The world that the block is placed inpos- The block's positiondirection- The block's direction- Returns:
- Whether blocks can be placed adjacent to it
- Mappings:
Namespace Name Mixin selector official bLalu;b(Lajs;Lco;Lcv;)Zintermediary method_8662Lnet/minecraft/class_197;method_8662(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Znamed canBePlacedAdjacentLnet/minecraft/block/Block;canBePlacedAdjacent(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
-
method_8939
- Mappings:
Namespace Name Mixin selector official eLarm;e(I)Lcv;intermediary method_8939Lnet/minecraft/class_205;method_8939(I)Lnet/minecraft/class_1354;named method_8939Lnet/minecraft/block/TrapdoorBlock;method_8939(I)Lnet/minecraft/util/math/Direction;
-
method_8938
- Mappings:
Namespace Name Mixin selector official aLarm;a(Lcv;)Iintermediary method_8938Lnet/minecraft/class_205;method_8938(Lnet/minecraft/class_1354;)Inamed method_8938Lnet/minecraft/block/TrapdoorBlock;method_8938(Lnet/minecraft/util/math/Direction;)I
-
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;
-
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
-
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;
-
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;
-