Package net.minecraft.block
Class Block
java.lang.Object
net.minecraft.block.Block
- Direct Known Subclasses:
AbstractFluidBlock,AbstractPressurePlateBlock,AbstractRailBlock,AirBlock,BarrierBlock,BedrockBlock,BigMushroomBlock,BlockWithEntity,BookshelfBlock,CactusBlock,CakeBlock,CarpetBlock,CauldronBlock,ChorusFlowerBlock,ChorusPlantBlock,ClayBlock,CobwebBlock,CraftingTableBlock,DirtBlock,DoorBlock,DragonEggBlock,EndPortalFrameBlock,FallingBlock,FarmlandBlock,FenceBlock,FireBlock,GlowstoneBlock,GrassBlock,GrassPathBlock,HardenedClayBlock,HorizontalFacingBlock,HorizotalFacingBlock,InfestedBlock,LadderBlock,LeavesBlock,LeverBlock,MelonBlock,MyceliumBlock,NetherBrickBlock,NetherrackBlock,ObsidianBlock,OreBlock,PackedIceBlock,PaneBlock,PillarBlock,PlanksBlock,PlantBlock,PrismarineBlock,QuartzBlock,RedSandstoneBlock,RedstoneBlock,RedstoneLampBlock,RedstoneOreBlock,RedstoneWireBlock,SandstoneBlock,SeaLanternBlock,SlabBlock,SnowBlock,SnowLayerBlock,SoulSandBlock,SpongeBlock,StairsBlock,StoneBlock,StoneBrickBlock,SugarCaneBlock,TntBlock,TorchBlock,TransparentBlock,TrapdoorBlock,TripwireBlock,TripwireHookBlock,VineBlock,WallBlock,WoolBlock
The Block class provides useful methods and fields for creation of Blocks.
All blocks extend the Block class.
The Block class also registers all the blocks.
- Mappings:
Namespace Name official ajtintermediary net/minecraft/class_197named net/minecraft/block/Block
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final IdentifierThe Identifier for Airprotected floatStores the current block's resistancestatic final IdList<BlockState>A List of all blockstates, used by Debug worldsprotected booleanSpecifies whether the current block has a block entityprotected BlockSoundGroupstatic final Boxprivate BlockStateStores the block's default statestatic final Boxprotected booleanSpecifies whether the current block is a full blockprotected floatStores the current block's hardnessprivate ItemGroupprotected intStores the block's luminescenceprotected final MaterialStores the current block's materialprotected final MaterialColorStores the current block's material colorprotected intStores the light opacity of the blockfloatStores the current block's particles' gravityprotected booleanSpecifies whether the current block ticks randomlystatic final BiDefaultedRegistry<Identifier,Block> The Registry object to which all blocks get registered tofloatStores the current block's slipperiness Used By Ice and Packed Iceprotected final StateManagerStores the block's state managerprotected booleanSpecifies whether the current block is tracked for statsprivate StringStores the block's translation keyprotected booleanSpecifies whether the current block is transluscentprotected boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOverloaded Block constructor that calls the other with the default material colorBlock(Material material, MaterialColor color) Block constructor which initializes all fields to their default values and assigns the material and material color to the specified parameters -
Method Summary
Modifier and TypeMethodDescriptionvoidappendCollisionBoxes(BlockState state, World world, BlockPos pos, Box entityBox, List<Box> boxes, Entity entity) Deprecated.protected static voidvoidappendItemStacks(Item item, ItemGroup group, List<ItemStack> stacks) Appends ItemStacks to an itemgroup.protected StateManagerReturns a new state manager with a property array.static booleanareBlocksEqual(Block one, Block two) Returns whether two blocks are equal.booleanblocksMovement(BlockView view, BlockPos pos) booleancanBePlacedAdjacent(World world, BlockPos pos, Direction direction) Returns whether blocks can be placed adjacent to it.booleancanBePlacedAtPos(World world, BlockPos pos) Returns whether the current block can be placed at a certainBlockPosbooleancanBeReplaced(World world, BlockPos pos, Direction dir, ItemStack stack) Returns whether the current block can be replaced.booleancanCollide(BlockState state, boolean bl) Returns whether entities can collide with the blockbooleanReturns whether mobs can spawn inside the block.protected ItemStackcreateStackFromBlock(BlockState state) Creates and returns and ItemStack from a block.protected BlockDisables tracking by stats for the current block.final voiddropAsItem(World world, BlockPos pos, BlockState state, int id) Runs when the block must be dropped as an item.protected voiddropExperience(World world, BlockPos pos, int size) Runs when the block is broken to drop experience.static BlockReturns a block from it's namefloatgetBlastResistance(Entity entity) Returns the block's blast resistance as per the entity provided.static BlockgetBlockFromItem(Item item) Returns a block by converting a blockitem to a blockgetBlockRenderType(BlockState state) Deprecated.getBlockState(BlockState state, BlockView view, BlockPos pos) Deprecated.intgetBonusDrops(int id, Random rand) Returns the number bonus drops for a block when broken.static intgetByBlockState(BlockState state) Returns a certain Block's id from a blockstatestatic BlockgetById(int id) Returns a certain block from its idgetCollisionBox(BlockState state, BlockView view, BlockPos pos) Deprecated.getCollisionBox(BlockState state, World world, BlockPos pos) Deprecated.intgetComparatorOutput(BlockState state, World world, BlockPos pos) Deprecated.intgetData(BlockState state) Returns the data value for a blockstate Throws anIllegalArmumentExceptionas this method does not workfinal BlockStateReturns the block's default BlockState.intgetDropCount(Random rand) Returns the amount of items the block should drop on breaking without bonus rolls.getDropItem(BlockState blockState, Random random, int state) Returns the item that must be dropped when the block is brokenfloatgetHardness(BlockState blockState, World world, BlockPos blockPos) Deprecated.static intgetIdByBlock(Block block) Returns a certain block's idReturns the block's ItemGroup.intgetLuminance(BlockState state) Deprecated.getMaterial(BlockState state) Deprecated.getMaterialColor(BlockState state) Deprecated.intgetMeta(BlockState state) Returns the metadata value for a certain BlockStateReturns the block's offset type.intgetOpacity(BlockState blockState) Deprecated.getPistonBehavior(BlockState state) Deprecated.Returns 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 idstatic BlockStategetStateFromRawId(int id) Returns a BlockState from it's idReturns the current state manager.intgetTickRate(World world) Returns the block's tick rate.Translates and returns the translation keyReturns the block's translation keybooleanReturns whether the current block has a block entitybooleanReturns whether a block has collision, i.e.booleanhasCollision(BlockView blockView, BlockPos pos, Direction direction) booleanhasStats()Returns whether the current block should be tracked for statsbooleanReturns whether the current block and another block are equalbooleanisFire()booleanisFullBlock(BlockState blockState) Deprecated.booleanisFullBoundsCubeForCulling(BlockState blockState) Deprecated.booleanChecks whether the current block is a normal block (used only byLeavesBlock)booleanisTransluscent(BlockState blockState) Deprecated.floatmethod_11557(BlockState blockState, PlayerEntity playerEntity, World world, BlockPos blockPos) Deprecated.protected BlockHitResultmethod_11559(BlockPos blockPos, Vec3d vec3d, Vec3d vec3d2, Box box) booleanmethod_11562(BlockState state) Deprecated.method_11563(BlockState blockState, World world, BlockPos blockPos) Deprecated.intmethod_11564(BlockState state, BlockView view, BlockPos pos) Deprecated.floatmethod_11565(BlockState state) Deprecated.booleanmethod_11566(BlockState state) Deprecated.booleanmethod_11568(BlockState state) Deprecated.booleanmethod_11575(BlockState state) Deprecated.booleanmethod_11576(BlockState state) Deprecated.booleanmethod_11577(BlockState state) Deprecated.method_414(BlockState blockState, World world, BlockPos blockPos, Vec3d vec3d, Vec3d vec3d2) Deprecated.booleanmethod_421(World world, BlockPos blockPos, BlockState blockState, PlayerEntity playerEntity, Hand hand, ItemStack itemStack, Direction direction, float float2, float float3, float float4) booleanmethod_435(BlockState blockState, World world, BlockPos blockPos, int int2, int int3) Deprecated.booleanmethod_8638(BlockView blockView, BlockPos blockPos) method_8640(World world, BlockPos blockPos, BlockState blockState) voidmethod_8641(BlockState blockState, World world, BlockPos blockPos, Block block) Deprecated.voidmethod_8651(World world, PlayerEntity player, BlockPos pos, BlockState state, BlockEntity blockEntity, ItemStack stack) intmethod_8653(BlockState blockState, BlockView blockView, BlockPos blockPos, Direction direction) Deprecated.booleanmethod_8654(BlockState state, BlockView view, BlockPos pos, Direction direction) Deprecated.intmethod_8664(BlockState blockState, BlockView blockView, BlockPos blockPos, Direction direction) Deprecated.voidmethod_8669(BlockState blockState, World world, BlockPos blockPos, Random random) static voidonBlockBreak(World world, BlockPos pos, ItemStack item) Runs when a block is brokenvoidonBlockBreakStart(World world, BlockPos pos, PlayerEntity player) voidonBreakByPlayer(World world, BlockPos pos, BlockState state) Runs when the block is broken by the playervoidonBreakByPlayer(World world, BlockPos pos, BlockState state, PlayerEntity player) Runs when the block is broken by a player.voidonBreaking(World world, BlockPos pos, BlockState state) Runs when the block is removed (by an entity or explosion).voidonCreation(World world, BlockPos pos, BlockState state) Runs when the block is placed (by a player or enderman).voidonDestroyedByExplosion(World world, BlockPos pos, Explosion explosion) voidonEntityCollision(World world, BlockPos pos, BlockState state, Entity entity) Runs every time an entity collides with the blockonEntityCollision(World world, BlockPos pos, Entity entity, Vec3d velocity) voidonLandedUpon(World world, BlockPos pos, Entity entity, float distance) Runs when an entity falls on the block.voidonPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Runs when the block is placed by an entityvoidonSteppedOn(World world, BlockPos pos, Entity entity) Runs every time an entity steps on the Block.voidonUpdateTick(World world, BlockPos pos, BlockState state, Random rand) Runs when the block is updatedvoidRuns every tick when raining.voidrandomDropAsItem(World world, BlockPos pos, BlockState state, float chance, int id) Called when the block must be dropped as an item bydropAsItem, but luck is taken into consideration here.private static voidRegisters a block to the registryprivate static voidregister(int id, Identifier identifier, Block block) Registers a block to the registryprotected booleanvoidscheduledTick(World world, BlockPos pos, BlockState state, Random rand) Runs when the block is updated as per a scheduleprotected BlocksetBlockSoundGroup(BlockSoundGroup blockSoundGroup) protected final voidsetDefaultState(BlockState state) Sets the block's default BlockState.voidsetEntityVelocity(World world, Entity entity) Sets the speed of an entity moving on the blocksetItemGroup(ItemGroup group) Sets the block's ItemGroup.protected BlocksetLightLevel(float lightLevel) Sets the block's luminescence.protected BlocksetOpacity(int opacity) Sets the block's light opacity.protected BlocksetResistance(float resistance) Sets the block's resistance.protected BlocksetStrength(float strength) Sets the current block's strength.protected BlocksetTickRandomly(boolean tickRandomly) Sets whether the current block has random ticks.setTranslationKey(String key) Sets the block's localization key.protected BlockSets the current block as unbreakable.static voidsetup()Registers all blocksbooleanshouldDropItemsOnExplosion(Explosion explosion) Returns whether the block should drop as an Item during an explosion.stateFromData(int data) Deprecated.booleanReturns whether the current block has random tickstoString()booleanuseNeighbourLight(BlockState blockState) Deprecated.withMirror(BlockState state, BlockMirror mirror) Deprecated.withRotation(BlockState state, BlockRotation rotation) Deprecated.
-
Field Details
-
AIR_ID
The Identifier for Air- Mappings:
Namespace Name Mixin selector official aLajt;a:Lkl;intermediary field_9282Lnet/minecraft/class_197;field_9282:Lnet/minecraft/class_1653;named AIR_IDLnet/minecraft/block/Block;AIR_ID:Lnet/minecraft/util/Identifier;
-
REGISTRY
The Registry object to which all blocks get registered to- Mappings:
Namespace Name Mixin selector official hLajt;h:Lcq;intermediary field_9283Lnet/minecraft/class_197;field_9283:Lnet/minecraft/class_1940;named REGISTRYLnet/minecraft/block/Block;REGISTRY:Lnet/minecraft/util/registry/BiDefaultedRegistry;
-
BLOCK_STATES
A List of all blockstates, used by Debug worlds- Mappings:
Namespace Name Mixin selector official iLajt;i:Lcv;intermediary field_9284Lnet/minecraft/class_197;field_9284:Lnet/minecraft/class_1942;named BLOCK_STATESLnet/minecraft/block/Block;BLOCK_STATES:Lnet/minecraft/util/collection/IdList;
-
collisionBox
- Mappings:
Namespace Name Mixin selector official jLajt;j:Lbbf;intermediary field_12571Lnet/minecraft/class_197;field_12571:Lnet/minecraft/class_231;named collisionBoxLnet/minecraft/block/Block;collisionBox:Lnet/minecraft/util/math/Box;
-
EMPTY_BOX
- Mappings:
Namespace Name Mixin selector official kLajt;k:Lbbf;intermediary field_12572Lnet/minecraft/class_197;field_12572:Lnet/minecraft/class_231;named EMPTY_BOXLnet/minecraft/block/Block;EMPTY_BOX:Lnet/minecraft/util/math/Box;
-
itemGroup
- Mappings:
Namespace Name Mixin selector official bLajt;b:Lacq;intermediary field_372Lnet/minecraft/class_197;field_372:Lnet/minecraft/class_1041;named itemGroupLnet/minecraft/block/Block;itemGroup:Lnet/minecraft/item/itemgroup/ItemGroup;
-
fullBlock
protected boolean fullBlockSpecifies whether the current block is a full block- Mappings:
Namespace Name Mixin selector official lLajt;l:Zintermediary field_7269Lnet/minecraft/class_197;field_7269:Znamed fullBlockLnet/minecraft/block/Block;fullBlock:Z
-
opacity
protected int opacityStores the light opacity of the block- Mappings:
Namespace Name Mixin selector official mLajt;m:Iintermediary field_7270Lnet/minecraft/class_197;field_7270:Inamed opacityLnet/minecraft/block/Block;opacity:I
-
transluscent
protected boolean transluscentSpecifies whether the current block is transluscent- Mappings:
Namespace Name Mixin selector official nLajt;n:Zintermediary field_7271Lnet/minecraft/class_197;field_7271:Znamed transluscentLnet/minecraft/block/Block;transluscent:Z
-
lightLevel
protected int lightLevelStores the block's luminescence- Mappings:
Namespace Name Mixin selector official oLajt;o:Iintermediary field_7272Lnet/minecraft/class_197;field_7272:Inamed lightLevelLnet/minecraft/block/Block;lightLevel:I
-
useNeighbourLight
protected boolean useNeighbourLight- Mappings:
Namespace Name Mixin selector official pLajt;p:Zintermediary field_7273Lnet/minecraft/class_197;field_7273:Znamed useNeighbourLightLnet/minecraft/block/Block;useNeighbourLight:Z
-
hardness
protected float hardnessStores the current block's hardness- Mappings:
Namespace Name Mixin selector official qLajt;q:Fintermediary field_467Lnet/minecraft/class_197;field_467:Fnamed hardnessLnet/minecraft/block/Block;hardness:F
-
blastResistance
protected float blastResistanceStores the current block's resistance- Mappings:
Namespace Name Mixin selector official rLajt;r:Fintermediary field_468Lnet/minecraft/class_197;field_468:Fnamed blastResistanceLnet/minecraft/block/Block;blastResistance:F
-
stats
protected boolean statsSpecifies whether the current block is tracked for stats- Mappings:
Namespace Name Mixin selector official sLajt;s:Zintermediary field_470Lnet/minecraft/class_197;field_470:Znamed statsLnet/minecraft/block/Block;stats:Z
-
randomTicks
protected boolean randomTicksSpecifies whether the current block ticks randomly- Mappings:
Namespace Name Mixin selector official tLajt;t:Zintermediary field_471Lnet/minecraft/class_197;field_471:Znamed randomTicksLnet/minecraft/block/Block;randomTicks:Z
-
blockEntity
protected boolean blockEntitySpecifies whether the current block has a block entity- Mappings:
Namespace Name Mixin selector official uLajt;u:Zintermediary field_472Lnet/minecraft/class_197;field_472:Znamed blockEntityLnet/minecraft/block/Block;blockEntity:Z
-
blockSoundGroup
- Mappings:
Namespace Name Mixin selector official vLajt;v:Laop;intermediary field_12573Lnet/minecraft/class_197;field_12573:Lnet/minecraft/class_200;named blockSoundGroupLnet/minecraft/block/Block;blockSoundGroup:Lnet/minecraft/sound/BlockSoundGroup;
-
particleGravity
public float particleGravityStores the current block's particles' gravity- Mappings:
Namespace Name Mixin selector official wLajt;w:Fintermediary field_480Lnet/minecraft/class_197;field_480:Fnamed particleGravityLnet/minecraft/block/Block;particleGravity:F
-
material
Stores the current block's material- See Also:
- Mappings:
Namespace Name Mixin selector official xLajt;x:Laxe;intermediary field_481Lnet/minecraft/class_197;field_481:Lnet/minecraft/class_63;named materialLnet/minecraft/block/Block;material:Lnet/minecraft/block/Material;
-
materialColor
Stores the current block's material color- See Also:
- Mappings:
Namespace Name Mixin selector official yLajt;y:Laxf;intermediary field_9279Lnet/minecraft/class_197;field_9279:Lnet/minecraft/class_65;named materialColorLnet/minecraft/block/Block;materialColor:Lnet/minecraft/block/MaterialColor;
-
slipperiness
public float slipperinessStores the current block's slipperiness Used By Ice and Packed Ice- Mappings:
Namespace Name Mixin selector official zLajt;z:Fintermediary field_482Lnet/minecraft/class_197;field_482:Fnamed slipperinessLnet/minecraft/block/Block;slipperiness:F
-
stateManager
Stores the block's state manager- Mappings:
Namespace Name Mixin selector official ALajt;A:Lare;intermediary field_9280Lnet/minecraft/class_197;field_9280:Lnet/minecraft/class_2233;named stateManagerLnet/minecraft/block/Block;stateManager:Lnet/minecraft/state/StateManager;
-
defaultState
Stores the block's default state- Mappings:
Namespace Name Mixin selector official cLajt;c:Lard;intermediary field_9281Lnet/minecraft/class_197;field_9281:Lnet/minecraft/class_2232;named defaultStateLnet/minecraft/block/Block;defaultState:Lnet/minecraft/block/BlockState;
-
translationKey
Stores the block's translation key- Mappings:
Namespace Name Mixin selector official dLajt;d:Ljava/lang/String;intermediary field_425Lnet/minecraft/class_197;field_425:Ljava/lang/String;named translationKeyLnet/minecraft/block/Block;translationKey:Ljava/lang/String;
-
-
Constructor Details
-
Block
Block constructor which initializes all fields to their default values and assigns the material and material color to the specified parameters- Parameters:
material- The block's materialcolor- The block's material color- Mappings:
Namespace Name Mixin selector official <init>Lajt;<init>(Laxe;Laxf;)Vintermediary <init>Lnet/minecraft/class_197;<init>(Lnet/minecraft/class_63;Lnet/minecraft/class_65;)Vnamed <init>Lnet/minecraft/block/Block;<init>(Lnet/minecraft/block/Material;Lnet/minecraft/block/MaterialColor;)V
-
Block
Overloaded Block constructor that calls the other with the default material color- Parameters:
material- The block's material- Mappings:
Namespace Name Mixin selector official <init>Lajt;<init>(Laxe;)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
-
getIdByBlock
Returns a certain block's id- Parameters:
block- The block for which the id is returned- Returns:
- Block id
- Mappings:
Namespace Name Mixin selector official aLajt;a(Lajt;)Iintermediary method_6445Lnet/minecraft/class_197;method_6445(Lnet/minecraft/class_197;)Inamed getIdByBlockLnet/minecraft/block/Block;getIdByBlock(Lnet/minecraft/block/Block;)I
-
getByBlockState
Returns a certain Block's id from a blockstate- Parameters:
state- The BlockState for which the id is returned- Returns:
- Block id
- Mappings:
Namespace Name Mixin selector official jLajt;j(Lard;)Iintermediary method_8677Lnet/minecraft/class_197;method_8677(Lnet/minecraft/class_2232;)Inamed getByBlockStateLnet/minecraft/block/Block;getByBlockState(Lnet/minecraft/block/BlockState;)I
-
getById
Returns a certain block from its id- Parameters:
id- The id for which the Block is returned- Returns:
- The Block
- Mappings:
Namespace Name Mixin selector official bLajt;b(I)Lajt;intermediary method_6448Lnet/minecraft/class_197;method_6448(I)Lnet/minecraft/class_197;named getByIdLnet/minecraft/block/Block;getById(I)Lnet/minecraft/block/Block;
-
getStateFromRawId
Returns a BlockState from it's id- Parameters:
id- The BlockState's id- Returns:
- The Blockstate
- Mappings:
Namespace Name Mixin selector official cLajt;c(I)Lard;intermediary method_8672Lnet/minecraft/class_197;method_8672(I)Lnet/minecraft/class_2232;named getStateFromRawIdLnet/minecraft/block/Block;getStateFromRawId(I)Lnet/minecraft/block/BlockState;
-
getBlockFromItem
Returns a block by converting a blockitem to a block- Parameters:
item- The item that must be converted to a block- Returns:
- The block
- Mappings:
Namespace Name Mixin selector official aLajt;a(Lado;)Lajt;intermediary method_6442Lnet/minecraft/class_197;method_6442(Lnet/minecraft/class_1069;)Lnet/minecraft/class_197;named getBlockFromItemLnet/minecraft/block/Block;getBlockFromItem(Lnet/minecraft/item/Item;)Lnet/minecraft/block/Block;
-
get
Returns a block from it's name- Parameters:
id- The block's name- Returns:
- The block
- Mappings:
Namespace Name Mixin selector official bLajt;b(Ljava/lang/String;)Lajt;intermediary method_6446Lnet/minecraft/class_197;method_6446(Ljava/lang/String;)Lnet/minecraft/class_197;named getLnet/minecraft/block/Block;get(Ljava/lang/String;)Lnet/minecraft/block/Block;
-
method_11568
Deprecated.- Mappings:
Namespace Name Mixin selector official kLajt;k(Lard;)Zintermediary method_11568Lnet/minecraft/class_197;method_11568(Lnet/minecraft/class_2232;)Znamed method_11568Lnet/minecraft/block/Block;method_11568(Lnet/minecraft/block/BlockState;)Z
-
isFullBlock
Deprecated.- Mappings:
Namespace Name Mixin selector official lLajt;l(Lard;)Zintermediary method_11569Lnet/minecraft/class_197;method_11569(Lnet/minecraft/class_2232;)Znamed isFullBlockLnet/minecraft/block/Block;isFullBlock(Lnet/minecraft/block/BlockState;)Z
-
getOpacity
Deprecated.- Mappings:
Namespace Name Mixin selector official mLajt;m(Lard;)Iintermediary method_11570Lnet/minecraft/class_197;method_11570(Lnet/minecraft/class_2232;)Inamed getOpacityLnet/minecraft/block/Block;getOpacity(Lnet/minecraft/block/BlockState;)I
-
isTransluscent
Deprecated.- Mappings:
Namespace Name Mixin selector official nLajt;n(Lard;)Zintermediary method_11571Lnet/minecraft/class_197;method_11571(Lnet/minecraft/class_2232;)Znamed isTransluscentLnet/minecraft/block/Block;isTransluscent(Lnet/minecraft/block/BlockState;)Z
-
getLuminance
Deprecated.- Mappings:
Namespace Name Mixin selector official oLajt;o(Lard;)Iintermediary method_11572Lnet/minecraft/class_197;method_11572(Lnet/minecraft/class_2232;)Inamed getLuminanceLnet/minecraft/block/Block;getLuminance(Lnet/minecraft/block/BlockState;)I
-
useNeighbourLight
Deprecated.- Mappings:
Namespace Name Mixin selector official pLajt;p(Lard;)Zintermediary method_11573Lnet/minecraft/class_197;method_11573(Lnet/minecraft/class_2232;)Znamed useNeighbourLightLnet/minecraft/block/Block;useNeighbourLight(Lnet/minecraft/block/BlockState;)Z
-
getMaterial
Deprecated.- Mappings:
Namespace Name Mixin selector official qLajt;q(Lard;)Laxe;intermediary method_11574Lnet/minecraft/class_197;method_11574(Lnet/minecraft/class_2232;)Lnet/minecraft/class_63;named getMaterialLnet/minecraft/block/Block;getMaterial(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/Material;
-
getMaterialColor
Deprecated.Returns the block's material color from it's state Blockstates can have different material colors- Parameters:
state- The Blockstate for which the material color is returned- Returns:
- materialColor
- Mappings:
Namespace Name Mixin selector official rLajt;r(Lard;)Laxf;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;
-
stateFromData
Deprecated.Returns a blockstate of the current block from it's id- Parameters:
data- The Blockstate's associated data value- Returns:
- The Default state
- Mappings:
Namespace Name Mixin selector official aLajt;a(I)Lard;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- Parameters:
state- The Blockstate- Returns:
- Zero
- Mappings:
Namespace Name Mixin selector official eLajt;e(Lard;)Iintermediary method_8671Lnet/minecraft/class_197;method_8671(Lnet/minecraft/class_2232;)Inamed getDataLnet/minecraft/block/Block;getData(Lnet/minecraft/block/BlockState;)I
-
getBlockState
Deprecated.Returns the current block's blockstate at a certain position- Parameters:
state- The original blockstateview- BlockView instancepos- The block's position- Returns:
- state
- Mappings:
Namespace Name Mixin selector official bLajt;b(Lard;Lahx;Lcl;)Lard;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
Deprecated.- Mappings:
Namespace Name Mixin selector official aLajt;a(Lard;Laoe;)Lard;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
Deprecated.- Mappings:
Namespace Name Mixin selector official aLajt;a(Lard;Lamr;)Lard;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;
-
setBlockSoundGroup
- Mappings:
Namespace Name Mixin selector official aLajt;a(Laop;)Lajt;intermediary method_401Lnet/minecraft/class_197;method_401(Lnet/minecraft/class_200;)Lnet/minecraft/class_197;named setBlockSoundGroupLnet/minecraft/block/Block;setBlockSoundGroup(Lnet/minecraft/sound/BlockSoundGroup;)Lnet/minecraft/block/Block;
-
setOpacity
Sets the block's light opacity. Used in registering blocks.- Parameters:
opacity- The block's light opacity- Returns:
- The current block
- Mappings:
Namespace Name Mixin selector official dLajt;d(I)Lajt;intermediary method_6450Lnet/minecraft/class_197;method_6450(I)Lnet/minecraft/class_197;named setOpacityLnet/minecraft/block/Block;setOpacity(I)Lnet/minecraft/block/Block;
-
setLightLevel
Sets the block's luminescence. Used in registering blocks.- Parameters:
lightLevel- The block's luminescence- Returns:
- The current block
- Mappings:
Namespace Name Mixin selector official aLajt;a(F)Lajt;intermediary method_6441Lnet/minecraft/class_197;method_6441(F)Lnet/minecraft/class_197;named setLightLevelLnet/minecraft/block/Block;setLightLevel(F)Lnet/minecraft/block/Block;
-
setResistance
Sets the block's resistance. Used in registering blocks.- Parameters:
resistance- The block's resistance- Returns:
- The current block
- Mappings:
Namespace Name Mixin selector official bLajt;b(F)Lajt;intermediary method_430Lnet/minecraft/class_197;method_430(F)Lnet/minecraft/class_197;named setResistanceLnet/minecraft/block/Block;setResistance(F)Lnet/minecraft/block/Block;
-
method_11575
Deprecated.- Mappings:
Namespace Name Mixin selector official sLajt;s(Lard;)Zintermediary method_11575Lnet/minecraft/class_197;method_11575(Lnet/minecraft/class_2232;)Znamed method_11575Lnet/minecraft/block/Block;method_11575(Lnet/minecraft/block/BlockState;)Z
-
method_11576
Deprecated.- Mappings:
Namespace Name Mixin selector official tLajt;t(Lard;)Zintermediary method_11576Lnet/minecraft/class_197;method_11576(Lnet/minecraft/class_2232;)Znamed method_11576Lnet/minecraft/block/Block;method_11576(Lnet/minecraft/block/BlockState;)Z
-
isLeafBlock
public boolean isLeafBlock()Checks whether the current block is a normal block (used only byLeavesBlock)- Returns:
- Whether the current block is a normal block
- Mappings:
Namespace Name Mixin selector official jLajt;j()Zintermediary method_8688Lnet/minecraft/class_197;method_8688()Znamed isLeafBlockLnet/minecraft/block/Block;isLeafBlock()Z
-
method_11562
Deprecated.- Mappings:
Namespace Name Mixin selector official cLajt;c(Lard;)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
- Mappings:
Namespace Name Mixin selector official bLajt;b(Lahx;Lcl;)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
-
getBlockRenderType
Deprecated.- Mappings:
Namespace Name Mixin selector official aLajt;a(Lard;)Laob;intermediary method_11552Lnet/minecraft/class_197;method_11552(Lnet/minecraft/class_2232;)Lnet/minecraft/class_2733;named getBlockRenderTypeLnet/minecraft/block/Block;getBlockRenderType(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockRenderType;
-
method_8638
- Mappings:
Namespace Name Mixin selector official aLajt;a(Lahx;Lcl;)Zintermediary method_8638Lnet/minecraft/class_197;method_8638(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Znamed method_8638Lnet/minecraft/block/Block;method_8638(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Z
-
setStrength
Sets the current block's strength. Used in registering blocks.- Parameters:
strength- The block's strength- Returns:
- The current block
- Mappings:
Namespace Name Mixin selector official cLajt;c(F)Lajt;intermediary method_442Lnet/minecraft/class_197;method_442(F)Lnet/minecraft/class_197;named setStrengthLnet/minecraft/block/Block;setStrength(F)Lnet/minecraft/block/Block;
-
setUnbreakable
Sets the current block as unbreakable. Used in registering blocks. Setting the strength as -1 makes the block unbreakable. Used by barriers and command blocks.- Returns:
- The current block
- Mappings:
Namespace Name Mixin selector official kLajt;k()Lajt;intermediary method_474Lnet/minecraft/class_197;method_474()Lnet/minecraft/class_197;named setUnbreakableLnet/minecraft/block/Block;setUnbreakable()Lnet/minecraft/block/Block;
-
getHardness
Deprecated.- Mappings:
Namespace Name Mixin selector official bLajt;b(Lard;Laht;Lcl;)Fintermediary method_11561Lnet/minecraft/class_197;method_11561(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Fnamed getHardnessLnet/minecraft/block/Block;getHardness(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)F
-
setTickRandomly
Sets whether the current block has random ticks. Used in registering blocks.- Parameters:
tickRandomly- Whether the current block should have random ticks- Returns:
- The current block
- Mappings:
Namespace Name Mixin selector official aLajt;a(Z)Lajt;intermediary method_440Lnet/minecraft/class_197;method_440(Z)Lnet/minecraft/class_197;named setTickRandomlyLnet/minecraft/block/Block;setTickRandomly(Z)Lnet/minecraft/block/Block;
-
ticksRandomly
public boolean ticksRandomly()Returns whether the current block has random ticks- Returns:
- Whether the current block has random ticks
- Mappings:
Namespace Name Mixin selector official lLajt;l()Zintermediary method_476Lnet/minecraft/class_197;method_476()Znamed ticksRandomlyLnet/minecraft/block/Block;ticksRandomly()Z
-
hasBlockEntity
public boolean hasBlockEntity()Returns whether the current block has a block entity- Returns:
- Whether the current block has a block entity
- Mappings:
Namespace Name Mixin selector official mLajt;m()Zintermediary method_478Lnet/minecraft/class_197;method_478()Znamed hasBlockEntityLnet/minecraft/block/Block;hasBlockEntity()Z
-
getCollisionBox
Deprecated.- Mappings:
Namespace Name Mixin selector official aLajt;a(Lard;Lahx;Lcl;)Lbbf;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;
-
method_11564
@Environment(CLIENT) @Deprecated public int method_11564(BlockState state, BlockView view, BlockPos pos) Deprecated.- Mappings:
Namespace Name Mixin selector official cLajt;c(Lard;Lahx;Lcl;)Iintermediary method_11564Lnet/minecraft/class_197;method_11564(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Inamed method_11564Lnet/minecraft/block/Block;method_11564(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)I
-
method_8654
@Environment(CLIENT) @Deprecated public boolean method_8654(BlockState state, BlockView view, BlockPos pos, Direction direction) Deprecated.- Mappings:
Namespace Name Mixin selector official aLajt;a(Lard;Lahx;Lcl;Lcs;)Zintermediary method_8654Lnet/minecraft/class_197;method_8654(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Znamed method_8654Lnet/minecraft/block/Block;method_8654(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
-
hasCollision
- Mappings:
Namespace Name Mixin selector official aLajt;a(Lahx;Lcl;Lcs;)Zintermediary method_8665Lnet/minecraft/class_197;method_8665(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Znamed hasCollisionLnet/minecraft/block/Block;hasCollision(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)Z
-
method_11563
@Environment(CLIENT) @Deprecated public Box method_11563(BlockState blockState, World world, BlockPos blockPos) Deprecated.- Mappings:
Namespace Name Mixin selector official cLajt;c(Lard;Laht;Lcl;)Lbbf;intermediary method_11563Lnet/minecraft/class_197;method_11563(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Lnet/minecraft/class_231;named method_11563Lnet/minecraft/block/Block;method_11563(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Box;
-
appendCollisionBoxes
@Deprecated public void appendCollisionBoxes(BlockState state, World world, BlockPos pos, Box entityBox, List<Box> boxes, @Nullable Entity entity) Deprecated.- Mappings:
Namespace Name Mixin selector official aLajt;a(Lard;Laht;Lcl;Lbbf;Ljava/util/List;Lrr;)Vintermediary method_11553Lnet/minecraft/class_197;method_11553(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_231;Ljava/util/List;Lnet/minecraft/class_864;)Vnamed appendCollisionBoxesLnet/minecraft/block/Block;appendCollisionBoxes(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Box;Ljava/util/List;Lnet/minecraft/entity/Entity;)V
-
appendCollisionBoxes
protected static void appendCollisionBoxes(BlockPos pos, Box entityBox, List<Box> boxes, @Nullable Box boxToAdd) - Mappings:
Namespace Name Mixin selector official aLajt;a(Lcl;Lbbf;Ljava/util/List;Lbbf;)Vintermediary method_11558Lnet/minecraft/class_197;method_11558(Lnet/minecraft/class_2552;Lnet/minecraft/class_231;Ljava/util/List;Lnet/minecraft/class_231;)Vnamed appendCollisionBoxesLnet/minecraft/block/Block;appendCollisionBoxes(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Box;Ljava/util/List;Lnet/minecraft/util/math/Box;)V
-
getCollisionBox
Deprecated.- Mappings:
Namespace Name Mixin selector official aLajt;a(Lard;Laht;Lcl;)Lbbf;intermediary method_8640Lnet/minecraft/class_197;method_8640(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Lnet/minecraft/class_231;named getCollisionBoxLnet/minecraft/block/Block;getCollisionBox(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Box;
-
isFullBoundsCubeForCulling
Deprecated.- Mappings:
Namespace Name Mixin selector official bLajt;b(Lard;)Zintermediary method_11560Lnet/minecraft/class_197;method_11560(Lnet/minecraft/class_2232;)Znamed isFullBoundsCubeForCullingLnet/minecraft/block/Block;isFullBoundsCubeForCulling(Lnet/minecraft/block/BlockState;)Z
-
canCollide
Returns whether entities can collide with the block- Parameters:
state- The block's BlockState- Returns:
- Whether the block has collision
- Mappings:
Namespace Name Mixin selector official aLajt;a(Lard;Z)Zintermediary method_400Lnet/minecraft/class_197;method_400(Lnet/minecraft/class_2232;Z)Znamed canCollideLnet/minecraft/block/Block;canCollide(Lnet/minecraft/block/BlockState;Z)Z
-
hasCollision
public boolean hasCollision()Returns whether a block has collision, i.e. stops entities- Returns:
- Whether a block has collision
- Mappings:
Namespace Name Mixin selector official nLajt;n()Zintermediary method_469Lnet/minecraft/class_197;method_469()Znamed hasCollisionLnet/minecraft/block/Block;hasCollision()Z
-
onUpdateTick
Runs when the block is updated- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockStaterand- Random object- Mappings:
Namespace Name Mixin selector official aLajt;a(Laht;Lcl;Lard;Ljava/util/Random;)Vintermediary method_8643Lnet/minecraft/class_197;method_8643(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Ljava/util/Random;)Vnamed onUpdateTickLnet/minecraft/block/Block;onUpdateTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Ljava/util/Random;)V
-
scheduledTick
Runs when the block is updated as per a schedule- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockStaterand- Random object- Mappings:
Namespace Name Mixin selector official bLajt;b(Laht;Lcl;Lard;Ljava/util/Random;)Vintermediary method_8661Lnet/minecraft/class_197;method_8661(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Ljava/util/Random;)Vnamed scheduledTickLnet/minecraft/block/Block;scheduledTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Ljava/util/Random;)V
-
method_8669
@Environment(CLIENT) public void method_8669(BlockState blockState, World world, BlockPos blockPos, Random random) - Mappings:
Namespace Name Mixin selector official aLajt;a(Lard;Laht;Lcl;Ljava/util/Random;)Vintermediary method_8669Lnet/minecraft/class_197;method_8669(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Ljava/util/Random;)Vnamed method_8669Lnet/minecraft/block/Block;method_8669(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
-
onBreakByPlayer
Runs when the block is broken by the player- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockState- Mappings:
Namespace Name Mixin selector official dLajt;d(Laht;Lcl;Lard;)Vintermediary method_8674Lnet/minecraft/class_197;method_8674(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Vnamed onBreakByPlayerLnet/minecraft/block/Block;onBreakByPlayer(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
method_8641
@Deprecated public void method_8641(BlockState blockState, World world, BlockPos blockPos, Block block) Deprecated.- Mappings:
Namespace Name Mixin selector official aLajt;a(Lard;Laht;Lcl;Lajt;)Vintermediary method_8641Lnet/minecraft/class_197;method_8641(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_197;)Vnamed method_8641Lnet/minecraft/block/Block;method_8641(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;)V
-
getTickRate
Returns the block's tick rate. Default is 10.- Parameters:
world- The world that the block is placed in- Returns:
- Tick rate
- Mappings:
Namespace Name Mixin selector official aLajt;a(Laht;)Iintermediary method_4789Lnet/minecraft/class_197;method_4789(Lnet/minecraft/class_1150;)Inamed getTickRateLnet/minecraft/block/Block;getTickRate(Lnet/minecraft/world/World;)I
-
onCreation
Runs when the block is placed (by a player or enderman).- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockState- Mappings:
Namespace Name Mixin selector official cLajt;c(Laht;Lcl;Lard;)Vintermediary method_8668Lnet/minecraft/class_197;method_8668(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Vnamed onCreationLnet/minecraft/block/Block;onCreation(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
onBreaking
Runs when the block is removed (by an entity or explosion).- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockState- Mappings:
Namespace Name Mixin selector official bLajt;b(Laht;Lcl;Lard;)Vintermediary method_8659Lnet/minecraft/class_197;method_8659(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Vnamed onBreakingLnet/minecraft/block/Block;onBreaking(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
getDropCount
Returns the amount of items the block should drop on breaking without bonus rolls.- Parameters:
rand- Random object- Returns:
- Amount of items to be dropped
- Mappings:
Namespace Name Mixin selector official aLajt;a(Ljava/util/Random;)Iintermediary method_403Lnet/minecraft/class_197;method_403(Ljava/util/Random;)Inamed getDropCountLnet/minecraft/block/Block;getDropCount(Ljava/util/Random;)I
-
getDropItem
Returns the item that must be dropped when the block is broken- Parameters:
blockState- The block's BlockStaterandom- Random objectstate- State- Returns:
- The Item that drops after the block breaks
- Mappings:
Namespace Name Mixin selector official aLajt;a(Lard;Ljava/util/Random;I)Lado;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_11557
@Deprecated public float method_11557(BlockState blockState, PlayerEntity playerEntity, World world, BlockPos blockPos) Deprecated.- Mappings:
Namespace Name Mixin selector official aLajt;a(Lard;Lzj;Laht;Lcl;)Fintermediary method_11557Lnet/minecraft/class_197;method_11557(Lnet/minecraft/class_2232;Lnet/minecraft/class_988;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Fnamed method_11557Lnet/minecraft/block/Block;method_11557(Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)F
-
dropAsItem
Runs when the block must be dropped as an item. Called when the block is broken or an enderman holding the block dies.- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockStateid- Id- Mappings:
Namespace Name Mixin selector official bLajt;b(Laht;Lcl;Lard;I)Vintermediary method_8660Lnet/minecraft/class_197;method_8660(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;I)Vnamed dropAsItemLnet/minecraft/block/Block;dropAsItem(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;I)V
-
randomDropAsItem
Called when the block must be dropped as an item bydropAsItem, but luck is taken into consideration here.- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockStatechance- The chance (luck factor)id- Id- Mappings:
Namespace Name Mixin selector official aLajt;a(Laht;Lcl;Lard;FI)Vintermediary method_410Lnet/minecraft/class_197;method_410(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;FI)Vnamed randomDropAsItemLnet/minecraft/block/Block;randomDropAsItem(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;FI)V
-
onBlockBreak
Runs when a block is broken- Parameters:
world- The world that the block is placed inpos- The block's positionitem- Allows creating an ItemEntity- Mappings:
Namespace Name Mixin selector official aLajt;a(Laht;Lcl;Ladq;)Vintermediary method_8649Lnet/minecraft/class_197;method_8649(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1071;)Vnamed onBlockBreakLnet/minecraft/block/Block;onBlockBreak(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/item/ItemStack;)V
-
dropExperience
Runs when the block is broken to drop experience. Since entities are being spawned, most of it only happens on a ServerWorld.- Parameters:
world- The world that the block is placed inpos- The block's positionsize- Size- Mappings:
Namespace Name Mixin selector official bLajt;b(Laht;Lcl;I)Vintermediary method_8658Lnet/minecraft/class_197;method_8658(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;I)Vnamed dropExperienceLnet/minecraft/block/Block;dropExperience(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;I)V
-
getMeta
Returns the metadata value for a certain BlockState- Parameters:
state- The BlockState- Returns:
- Metadata value
- Mappings:
Namespace Name Mixin selector official dLajt;d(Lard;)Iintermediary method_8655Lnet/minecraft/class_197;method_8655(Lnet/minecraft/class_2232;)Inamed getMetaLnet/minecraft/block/Block;getMeta(Lnet/minecraft/block/BlockState;)I
-
getBlastResistance
Returns the block's blast resistance as per the entity provided.- Parameters:
entity- The entity that blast resistance must be calculated for- Returns:
- Blast Resistance
- Mappings:
Namespace Name Mixin selector official aLajt;a(Lrr;)Fintermediary method_404Lnet/minecraft/class_197;method_404(Lnet/minecraft/class_864;)Fnamed getBlastResistanceLnet/minecraft/block/Block;getBlastResistance(Lnet/minecraft/entity/Entity;)F
-
method_414
@Deprecated @Nullable public BlockHitResult method_414(BlockState blockState, World world, BlockPos blockPos, Vec3d vec3d, Vec3d vec3d2) Deprecated.- Mappings:
Namespace Name Mixin selector official aLajt;a(Lard;Laht;Lcl;Lbbh;Lbbh;)Lbbg;intermediary method_414Lnet/minecraft/class_197;method_414(Lnet/minecraft/class_2232;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/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/hit/BlockHitResult;
-
method_11559
@Nullable protected BlockHitResult method_11559(BlockPos blockPos, Vec3d vec3d, Vec3d vec3d2, Box box) - Mappings:
Namespace Name Mixin selector official aLajt;a(Lcl;Lbbh;Lbbh;Lbbf;)Lbbg;intermediary method_11559Lnet/minecraft/class_197;method_11559(Lnet/minecraft/class_2552;Lnet/minecraft/class_236;Lnet/minecraft/class_236;Lnet/minecraft/class_231;)Lnet/minecraft/class_234;named method_11559Lnet/minecraft/block/Block;method_11559(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Box;)Lnet/minecraft/util/hit/BlockHitResult;
-
onDestroyedByExplosion
- Mappings:
Namespace Name Mixin selector official aLajt;a(Laht;Lcl;Lahp;)Vintermediary method_8639Lnet/minecraft/class_197;method_8639(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1147;)Vnamed onDestroyedByExplosionLnet/minecraft/block/Block;onDestroyedByExplosion(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/explosion/Explosion;)V
-
getRenderLayerType
Returns the appropriate RenderLayer for a block. Only called on the client.- Returns:
- The block's RenderLayer
- Mappings:
Namespace Name Mixin selector official fLajt;f()Lahm;intermediary method_8687Lnet/minecraft/class_197;method_8687()Lnet/minecraft/class_2165;named getRenderLayerTypeLnet/minecraft/block/Block;getRenderLayerType()Lnet/minecraft/client/render/BlockRenderLayer;
-
canBeReplaced
Returns whether the current block can be replaced. Useful for grass like blocks.- Parameters:
world- The world that the block is placed inpos- The block's positiondir- The block's directionstack- ItemStack- Returns:
- Whether the current block can be replaced
- Mappings:
Namespace Name Mixin selector official aLajt;a(Laht;Lcl;Lcs;Ladq;)Zintermediary method_8646Lnet/minecraft/class_197;method_8646(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;Lnet/minecraft/class_1071;)Znamed canBeReplacedLnet/minecraft/block/Block;canBeReplaced(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;Lnet/minecraft/item/ItemStack;)Z
-
canBePlacedAdjacent
Returns whether blocks can be placed adjacent to it.- 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 bLajt;b(Laht;Lcl;Lcs;)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
-
canBePlacedAtPos
Returns whether the current block can be placed at a certainBlockPos- Returns:
- Whether the current block can be placed at a BlockPos
- Mappings:
Namespace Name Mixin selector official aLajt;a(Laht;Lcl;)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
-
method_421
public boolean method_421(World world, BlockPos blockPos, BlockState blockState, PlayerEntity playerEntity, Hand hand, @Nullable ItemStack itemStack, Direction direction, float float2, float float3, float float4) - Mappings:
Namespace Name Mixin selector official aLajt;a(Laht;Lcl;Lard;Lzj;Lqm;Ladq;Lcs;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_1071;Lnet/minecraft/class_1354;FFF)Znamed method_421Lnet/minecraft/block/Block;method_421(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/item/ItemStack;Lnet/minecraft/util/math/Direction;FFF)Z
-
onSteppedOn
Runs every time an entity steps on the Block. Used by redstone ore to change it's state.- Parameters:
world- The world that the block is placed inpos- The block's positionentity- The entity who stepped on the block- Mappings:
Namespace Name Mixin selector official aLajt;a(Laht;Lcl;Lrr;)Vintermediary method_437Lnet/minecraft/class_197;method_437(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_864;)Vnamed onSteppedOnLnet/minecraft/block/Block;onSteppedOn(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;)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- Parameters:
world- The world that the block is placed inpos- The block's positiondir- The block's direction- Mappings:
Namespace Name Mixin selector official aLajt;a(Laht;Lcl;Lcs;FFFILsa;)Lard;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;
-
onBlockBreakStart
- Mappings:
Namespace Name Mixin selector official aLajt;a(Laht;Lcl;Lzj;)Vintermediary method_420Lnet/minecraft/class_197;method_420(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_988;)Vnamed onBlockBreakStartLnet/minecraft/block/Block;onBlockBreakStart(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;)V
-
onEntityCollision
- Mappings:
Namespace Name Mixin selector official aLajt;a(Laht;Lcl;Lrr;Lbbh;)Lbbh;intermediary method_8648Lnet/minecraft/class_197;method_8648(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_864;Lnet/minecraft/class_236;)Lnet/minecraft/class_236;named onEntityCollisionLnet/minecraft/block/Block;onEntityCollision(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Vec3d;
-
method_8653
@Deprecated public int method_8653(BlockState blockState, BlockView blockView, BlockPos blockPos, Direction direction) Deprecated.- Mappings:
Namespace Name Mixin selector official bLajt;b(Lard;Lahx;Lcl;Lcs;)Iintermediary method_8653Lnet/minecraft/class_197;method_8653(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Inamed method_8653Lnet/minecraft/block/Block;method_8653(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)I
-
method_11566
Deprecated.- Mappings:
Namespace Name Mixin selector official gLajt;g(Lard;)Zintermediary method_11566Lnet/minecraft/class_197;method_11566(Lnet/minecraft/class_2232;)Znamed method_11566Lnet/minecraft/block/Block;method_11566(Lnet/minecraft/block/BlockState;)Z
-
onEntityCollision
Runs every time an entity collides with the block- Parameters:
world- The world that the block is placed inpos- The block's positionstate- The block's BlockStateentity- The entity that collided with the block- Mappings:
Namespace Name Mixin selector official aLajt;a(Laht;Lcl;Lard;Lrr;)Vintermediary method_416Lnet/minecraft/class_197;method_416(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_864;)Vnamed onEntityCollisionLnet/minecraft/block/Block;onEntityCollision(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/Entity;)V
-
method_8664
@Deprecated public int method_8664(BlockState blockState, BlockView blockView, BlockPos blockPos, Direction direction) Deprecated.- Mappings:
Namespace Name Mixin selector official cLajt;c(Lard;Lahx;Lcl;Lcs;)Iintermediary method_8664Lnet/minecraft/class_197;method_8664(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)Inamed method_8664Lnet/minecraft/block/Block;method_8664(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)I
-
method_8651
public void method_8651(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, @Nullable ItemStack stack) - Mappings:
Namespace Name Mixin selector official aLajt;a(Laht;Lzj;Lcl;Lard;Lapv;Ladq;)Vintermediary method_8651Lnet/minecraft/class_197;method_8651(Lnet/minecraft/class_1150;Lnet/minecraft/class_988;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_226;Lnet/minecraft/class_1071;)Vnamed method_8651Lnet/minecraft/block/Block;method_8651(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/BlockEntity;Lnet/minecraft/item/ItemStack;)V
-
requiresSilkTouch
protected boolean requiresSilkTouch()- Mappings:
Namespace Name Mixin selector official oLajt;o()Zintermediary method_475Lnet/minecraft/class_197;method_475()Znamed requiresSilkTouchLnet/minecraft/block/Block;requiresSilkTouch()Z
-
createStackFromBlock
Creates and returns and ItemStack from a block.- Parameters:
state- The block's BlockState- Returns:
- An ItemStack instance containing the block
- Mappings:
Namespace Name Mixin selector official uLajt;u(Lard;)Ladq;intermediary method_8682Lnet/minecraft/class_197;method_8682(Lnet/minecraft/class_2232;)Lnet/minecraft/class_1071;named createStackFromBlockLnet/minecraft/block/Block;createStackFromBlock(Lnet/minecraft/block/BlockState;)Lnet/minecraft/item/ItemStack;
-
getBonusDrops
Returns the number bonus drops for a block when broken.- Parameters:
id- Idrand- Random object- Returns:
- Bonus drops for a block
- Mappings:
Namespace Name Mixin selector official aLajt;a(ILjava/util/Random;)Iintermediary method_397Lnet/minecraft/class_197;method_397(ILjava/util/Random;)Inamed getBonusDropsLnet/minecraft/block/Block;getBonusDrops(ILjava/util/Random;)I
-
onPlaced
public void onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) Runs when the block is placed by an entity- Parameters:
world- The world that the block is inpos- The block's positionstate- The block's BlockStateplacer- The entity who placed the blockitemStack- ItemStack instance- Mappings:
Namespace Name Mixin selector official aLajt;a(Laht;Lcl;Lard;Lsa;Ladq;)Vintermediary method_419Lnet/minecraft/class_197;method_419(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_1699;Lnet/minecraft/class_1071;)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
-
canMobSpawnInside
public boolean canMobSpawnInside()Returns whether mobs can spawn inside the block. Used for Air.- Returns:
- Whether mobs can spawn inside the block
- Mappings:
Namespace Name Mixin selector official dLajt;d()Zintermediary method_8678Lnet/minecraft/class_197;method_8678()Znamed canMobSpawnInsideLnet/minecraft/block/Block;canMobSpawnInside()Z
-
setTranslationKey
Sets the block's localization key. Used in registering blocks.- Parameters:
key- The Translation key- Returns:
- The Current block
- Mappings:
Namespace Name Mixin selector official cLajt;c(Ljava/lang/String;)Lajt;intermediary method_433Lnet/minecraft/class_197;method_433(Ljava/lang/String;)Lnet/minecraft/class_197;named setTranslationKeyLnet/minecraft/block/Block;setTranslationKey(Ljava/lang/String;)Lnet/minecraft/block/Block;
-
getTranslatedName
Translates and returns the translation key- Returns:
- Translated name
- Mappings:
Namespace Name Mixin selector official cLajt;c()Ljava/lang/String;intermediary method_480Lnet/minecraft/class_197;method_480()Ljava/lang/String;named getTranslatedNameLnet/minecraft/block/Block;getTranslatedName()Ljava/lang/String;
-
getTranslationKey
Returns the block's translation key- Returns:
- Translation Key
- Mappings:
Namespace Name Mixin selector official aLajt;a()Ljava/lang/String;intermediary method_392Lnet/minecraft/class_197;method_392()Ljava/lang/String;named getTranslationKeyLnet/minecraft/block/Block;getTranslationKey()Ljava/lang/String;
-
method_435
@Deprecated public boolean method_435(BlockState blockState, World world, BlockPos blockPos, int int2, int int3) Deprecated.- Mappings:
Namespace Name Mixin selector official aLajt;a(Lard;Laht;Lcl;II)Zintermediary method_435Lnet/minecraft/class_197;method_435(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;II)Znamed method_435Lnet/minecraft/block/Block;method_435(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;II)Z
-
hasStats
public boolean hasStats()Returns whether the current block should be tracked for stats- Returns:
- Whether the current block should be tracked for stats
- Mappings:
Namespace Name Mixin selector official pLajt;p()Zintermediary method_481Lnet/minecraft/class_197;method_481()Znamed hasStatsLnet/minecraft/block/Block;hasStats()Z
-
disableStats
Disables tracking by stats for the current block. Used in registering blocks.- Returns:
- The current block
- Mappings:
Namespace Name Mixin selector official qLajt;q()Lajt;intermediary method_482Lnet/minecraft/class_197;method_482()Lnet/minecraft/class_197;named disableStatsLnet/minecraft/block/Block;disableStats()Lnet/minecraft/block/Block;
-
getPistonBehavior
Deprecated.- Mappings:
Namespace Name Mixin selector official hLajt;h(Lard;)Laxh;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_11565
Deprecated.- Mappings:
Namespace Name Mixin selector official fLajt;f(Lard;)Fintermediary method_11565Lnet/minecraft/class_197;method_11565(Lnet/minecraft/class_2232;)Fnamed method_11565Lnet/minecraft/block/Block;method_11565(Lnet/minecraft/block/BlockState;)F
-
onLandedUpon
Runs when an entity falls on the block.- Parameters:
world- The world that the block is placed inpos- The block's positionentity- The entity who fell on the blockdistance- The relative height from which the entity fell- Mappings:
Namespace Name Mixin selector official aLajt;a(Laht;Lcl;Lrr;F)Vintermediary method_8647Lnet/minecraft/class_197;method_8647(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_864;F)Vnamed onLandedUponLnet/minecraft/block/Block;onLandedUpon(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;F)V
-
setEntityVelocity
Sets the speed of an entity moving on the block- Parameters:
world- The world that the block is placed inentity- The entity that the speed must be changed for- Mappings:
Namespace Name Mixin selector official aLajt;a(Laht;Lrr;)Vintermediary method_8650Lnet/minecraft/class_197;method_8650(Lnet/minecraft/class_1150;Lnet/minecraft/class_864;)Vnamed setEntityVelocityLnet/minecraft/block/Block;setEntityVelocity(Lnet/minecraft/world/World;Lnet/minecraft/entity/Entity;)V
-
method_8640
- Mappings:
Namespace Name Mixin selector official aLajt;a(Laht;Lcl;Lard;)Ladq;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;
-
appendItemStacks
@Environment(CLIENT) public void appendItemStacks(Item item, ItemGroup group, List<ItemStack> stacks) Appends ItemStacks to an itemgroup. Only called on the client.- Parameters:
item- The Item that must be addedgroup- The ItemGroup that the item must be added tostacks- The list of currently added ItemStacks to the ItemGroup- Mappings:
Namespace Name Mixin selector official aLajt;a(Lado;Lacq;Ljava/util/List;)Vintermediary method_399Lnet/minecraft/class_197;method_399(Lnet/minecraft/class_1069;Lnet/minecraft/class_1041;Ljava/util/List;)Vnamed appendItemStacksLnet/minecraft/block/Block;appendItemStacks(Lnet/minecraft/item/Item;Lnet/minecraft/item/itemgroup/ItemGroup;Ljava/util/List;)V
-
getItemGroup
Returns the block's ItemGroup. Only called on the client.- Returns:
- The Block's item group
- Mappings:
Namespace Name Mixin selector official rLajt;r()Lacq;intermediary method_483Lnet/minecraft/class_197;method_483()Lnet/minecraft/class_1041;named getItemGroupLnet/minecraft/block/Block;getItemGroup()Lnet/minecraft/item/itemgroup/ItemGroup;
-
setItemGroup
Sets the block's ItemGroup. Used in registering blocks.- Parameters:
group- The itemgroup that the block must be added to- Returns:
- The current block
- Mappings:
Namespace Name Mixin selector official aLajt;a(Lacq;)Lajt;intermediary method_406Lnet/minecraft/class_197;method_406(Lnet/minecraft/class_1041;)Lnet/minecraft/class_197;named setItemGroupLnet/minecraft/block/Block;setItemGroup(Lnet/minecraft/item/itemgroup/ItemGroup;)Lnet/minecraft/block/Block;
-
onBreakByPlayer
Runs when the block is broken by a player.- 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 aLajt;a(Laht;Lcl;Lard;Lzj;)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
-
rainTick
Runs every tick when raining. Used my cauldrons to randomly fill up when raining.- Parameters:
world- The world that the block is placed inpos- The block's position- Mappings:
Namespace Name Mixin selector official hLajt;h(Laht;Lcl;)Vintermediary method_8685Lnet/minecraft/class_197;method_8685(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Vnamed rainTickLnet/minecraft/block/Block;rainTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
-
isFire
public boolean isFire()- Mappings:
Namespace Name Mixin selector official sLajt;s()Zintermediary method_4187Lnet/minecraft/class_197;method_4187()Znamed isFireLnet/minecraft/block/Block;isFire()Z
-
shouldDropItemsOnExplosion
Returns whether the block should drop as an Item during an explosion.- Parameters:
explosion- The explosion that caused the block to break- Returns:
- Whether the block should drop as an item during an explosion
- Mappings:
Namespace Name Mixin selector official aLajt;a(Lahp;)Zintermediary method_4184Lnet/minecraft/class_197;method_4184(Lnet/minecraft/class_1147;)Znamed shouldDropItemsOnExplosionLnet/minecraft/block/Block;shouldDropItemsOnExplosion(Lnet/minecraft/world/explosion/Explosion;)Z
-
isEqualTo
Returns whether the current block and another block are equal- Parameters:
block- The other block- Returns:
- Whether the current block and the other block are equal
- Mappings:
Namespace Name Mixin selector official bLajt;b(Lajt;)Zintermediary method_6447Lnet/minecraft/class_197;method_6447(Lnet/minecraft/class_197;)Znamed isEqualToLnet/minecraft/block/Block;isEqualTo(Lnet/minecraft/block/Block;)Z
-
areBlocksEqual
Returns whether two blocks are equal.- Returns:
- Whether two blocks are equal
- Mappings:
Namespace Name Mixin selector official aLajt;a(Lajt;Lajt;)Zintermediary method_6443Lnet/minecraft/class_197;method_6443(Lnet/minecraft/class_197;Lnet/minecraft/class_197;)Znamed areBlocksEqualLnet/minecraft/block/Block;areBlocksEqual(Lnet/minecraft/block/Block;Lnet/minecraft/block/Block;)Z
-
method_11577
Deprecated.- Mappings:
Namespace Name Mixin selector official vLajt;v(Lard;)Zintermediary method_11577Lnet/minecraft/class_197;method_11577(Lnet/minecraft/class_2232;)Znamed method_11577Lnet/minecraft/block/Block;method_11577(Lnet/minecraft/block/BlockState;)Z
-
getComparatorOutput
Deprecated.- Mappings:
Namespace Name Mixin selector official dLajt;d(Lard;Laht;Lcl;)Iintermediary method_8686Lnet/minecraft/class_197;method_8686(Lnet/minecraft/class_2232;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Inamed getComparatorOutputLnet/minecraft/block/Block;getComparatorOutput(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)I
-
appendProperties
Returns a new state manager with a property array.- Returns:
- New state manager
- Mappings:
Namespace Name Mixin selector official bLajt;b()Lare;intermediary method_8676Lnet/minecraft/class_197;method_8676()Lnet/minecraft/class_2233;named appendPropertiesLnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;
-
getStateManager
Returns the current state manager.- Returns:
- The current state manager
- Mappings:
Namespace Name Mixin selector official tLajt;t()Lare;intermediary method_8632Lnet/minecraft/class_197;method_8632()Lnet/minecraft/class_2233;named getStateManagerLnet/minecraft/block/Block;getStateManager()Lnet/minecraft/state/StateManager;
-
setDefaultState
Sets the block's default BlockState.- Parameters:
state- The default state- Mappings:
Namespace Name Mixin selector official wLajt;w(Lard;)Vintermediary method_8684Lnet/minecraft/class_197;method_8684(Lnet/minecraft/class_2232;)Vnamed setDefaultStateLnet/minecraft/block/Block;setDefaultState(Lnet/minecraft/block/BlockState;)V
-
getDefaultState
Returns the block's default BlockState.- Returns:
- The block's default BlockState
- Mappings:
Namespace Name Mixin selector official uLajt;u()Lard;intermediary method_8633Lnet/minecraft/class_197;method_8633()Lnet/minecraft/class_2232;named getDefaultStateLnet/minecraft/block/Block;getDefaultState()Lnet/minecraft/block/BlockState;
-
getOffsetType
Returns the block's offset type. Used by grass and flowers.- Returns:
- The block's offset type
- Mappings:
Namespace Name Mixin selector official vLajt;v()Lajt$a;intermediary method_8634Lnet/minecraft/class_197;method_8634()Lnet/minecraft/class_197$class_2177;named getOffsetTypeLnet/minecraft/block/Block;getOffsetType()Lnet/minecraft/block/Block$OffsetType;
-
getSoundGroup
- Mappings:
Namespace Name Mixin selector official wLajt;w()Laop;intermediary method_11578Lnet/minecraft/class_197;method_11578()Lnet/minecraft/class_200;named getSoundGroupLnet/minecraft/block/Block;getSoundGroup()Lnet/minecraft/sound/BlockSoundGroup;
-
toString
-
setup
public static void setup()Registers all blocks- Mappings:
Namespace Name Mixin selector official xLajt;x()Vintermediary method_6457Lnet/minecraft/class_197;method_6457()Vnamed setupLnet/minecraft/block/Block;setup()V
-
register
Registers a block to the registry- Parameters:
id- The block's Ididentifier- The block's Identifierblock- The block object- Mappings:
Namespace Name Mixin selector official aLajt;a(ILkl;Lajt;)Vintermediary method_8637Lnet/minecraft/class_197;method_8637(ILnet/minecraft/class_1653;Lnet/minecraft/class_197;)Vnamed registerLnet/minecraft/block/Block;register(ILnet/minecraft/util/Identifier;Lnet/minecraft/block/Block;)V
-
register
Registers a block to the registry- Parameters:
id- The block's Idname- The block's nameblock- The block object- Mappings:
Namespace Name Mixin selector official aLajt;a(ILjava/lang/String;Lajt;)Vintermediary method_8636Lnet/minecraft/class_197;method_8636(ILjava/lang/String;Lnet/minecraft/class_197;)Vnamed registerLnet/minecraft/block/Block;register(ILjava/lang/String;Lnet/minecraft/block/Block;)V
-