Package net.minecraft.block
Class AnvilBlock
java.lang.Object
net.minecraft.block.Block
net.minecraft.block.FallingBlock
net.minecraft.block.AnvilBlock
- Mappings:
Namespace Name official allintermediary net/minecraft/class_1299named net/minecraft/block/AnvilBlock
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.block.Block
Block.OffsetType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IntPropertystatic final DirectionPropertyprotected static final Boxprotected static final Boxprotected static final LoggerFields inherited from class net.minecraft.block.FallingBlock
field_7453Fields 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.getCollisionBox(BlockState state, BlockView view, BlockPos pos) intgetData(BlockState state) Returns the data value for a blockstate Throws anIllegalArmumentExceptionas this method does not workintgetMeta(BlockState state) Returns the metadata value for a certain BlockStategetStateFromData(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) voidmethod_13700(Item item, ItemGroup itemGroup, DefaultedList<ItemStack> defaultedList) voidmethod_13705(World world, BlockPos blockPos) protected voidmethod_6481(FallingBlockEntity fallingBlockEntity) booleanmethod_8654(BlockState state, BlockView view, BlockPos pos, Direction direction) voidonDestroyedOnLanding(World world, BlockPos pos) 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) withRotation(BlockState state, BlockRotation rotation) Methods inherited from class net.minecraft.block.FallingBlock
getTickRate, method_11611, method_13316, method_8669, onBreak, onCreation, scheduledTickMethods inherited from class net.minecraft.block.Block
appendCollisionBoxes, appendCollisionBoxes, areBlocksEqual, blocksMovement, canBePlacedAdjacent, 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, getOffsetType, getOpacity, getPistonBehavior, getRenderLayerType, getSoundGroup, getStateFromRawId, getStateManager, 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_13701, method_13702, method_13703, method_13704, method_414, method_435, method_8638, method_8640, method_8640, method_8651, method_8653, method_8664, onBlockBreak, onBlockBreakStart, onBreakByPlayer, onBreakByPlayer, onBreaking, onDestroyedByExplosion, onEntityCollision, onEntityCollision, onLandedUpon, onPlaced, onSteppedOn, onUpdateTick, rainTick, randomDropAsItem, requiresSilkTouch, setBlockSoundGroup, setDefaultState, setEntityVelocity, setItemGroup, setLightLevel, setOpacity, setResistance, setStrength, setTickRandomly, setTranslationKey, setUnbreakable, setup, shouldDropItemsOnExplosion, ticksRandomly, toString, useNeighbourLight, withMirror
-
Field Details
-
FACING
- Mappings:
Namespace Name Mixin selector official aLall;a:Laty;intermediary field_9244Lnet/minecraft/class_1299;field_9244:Lnet/minecraft/class_2244;named FACINGLnet/minecraft/block/AnvilBlock;FACING:Lnet/minecraft/state/property/DirectionProperty;
-
DAMAGE
- Mappings:
Namespace Name Mixin selector official bLall;b:Laua;intermediary field_9245Lnet/minecraft/class_1299;field_9245:Lnet/minecraft/class_2246;named DAMAGELnet/minecraft/block/AnvilBlock;DAMAGE:Lnet/minecraft/state/property/IntProperty;
-
field_12555
- Mappings:
Namespace Name Mixin selector official cLall;c:Lbdt;intermediary field_12555Lnet/minecraft/class_1299;field_12555:Lnet/minecraft/class_231;named field_12555Lnet/minecraft/block/AnvilBlock;field_12555:Lnet/minecraft/util/math/Box;
-
field_12556
- Mappings:
Namespace Name Mixin selector official dLall;d:Lbdt;intermediary field_12556Lnet/minecraft/class_1299;field_12556:Lnet/minecraft/class_231;named field_12556Lnet/minecraft/block/AnvilBlock;field_12556:Lnet/minecraft/util/math/Box;
-
field_12557
- Mappings:
Namespace Name Mixin selector official eLall;e:Lorg/apache/logging/log4j/Logger;intermediary field_12557Lnet/minecraft/class_1299;field_12557:Lorg/apache/logging/log4j/Logger;named field_12557Lnet/minecraft/block/AnvilBlock;field_12557:Lorg/apache/logging/log4j/Logger;
-
-
Constructor Details
-
AnvilBlock
protected AnvilBlock()
-
-
Method Details
-
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
-
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
-
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;
-
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
-
getMeta
Returns the metadata value for a certain BlockState- Overrides:
getMetain classBlock- Parameters:
state- The BlockState- Returns:
- Metadata value
- Mappings:
Namespace Name Mixin selector official dLalu;d(Latl;)Iintermediary method_8655Lnet/minecraft/class_197;method_8655(Lnet/minecraft/class_2232;)Inamed getMetaLnet/minecraft/block/Block;getMeta(Lnet/minecraft/block/BlockState;)I
-
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;
-
method_13700
@Environment(CLIENT) public void method_13700(Item item, ItemGroup itemGroup, DefaultedList<ItemStack> defaultedList) - Overrides:
method_13700in classBlock- Mappings:
Namespace Name Mixin selector official aLalu;a(Lafh;Laej;Ldd;)Vintermediary method_13700Lnet/minecraft/class_197;method_13700(Lnet/minecraft/class_1069;Lnet/minecraft/class_1041;Lnet/minecraft/class_3114;)Vnamed method_13700Lnet/minecraft/block/Block;method_13700(Lnet/minecraft/item/Item;Lnet/minecraft/item/itemgroup/ItemGroup;Lnet/minecraft/util/collection/DefaultedList;)V
-
method_6481
- Overrides:
method_6481in classFallingBlock- Mappings:
Namespace Name Mixin selector official aLanj;a(Lzi;)Vintermediary method_6481Lnet/minecraft/class_1756;method_6481(Lnet/minecraft/class_963;)Vnamed method_6481Lnet/minecraft/block/FallingBlock;method_6481(Lnet/minecraft/entity/FallingBlockEntity;)V
-
onDestroyedOnLanding
- Overrides:
onDestroyedOnLandingin classFallingBlock- Mappings:
Namespace Name Mixin selector official a_Lanj;a_(Lajs;Lco;)Vintermediary method_8766Lnet/minecraft/class_1756;method_8766(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Vnamed onDestroyedOnLandingLnet/minecraft/block/FallingBlock;onDestroyedOnLanding(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
-
method_13705
- Overrides:
method_13705in classFallingBlock- Mappings:
Namespace Name Mixin selector official bLanj;b(Lajs;Lco;)Vintermediary method_13705Lnet/minecraft/class_1756;method_13705(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Vnamed method_13705Lnet/minecraft/block/FallingBlock;method_13705(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
-
method_8654
@Environment(CLIENT) public boolean method_8654(BlockState state, BlockView view, BlockPos pos, Direction direction) - Overrides:
method_8654in classBlock- Mappings:
Namespace Name Mixin selector official aLalu;a(Latl;Lajw;Lco;Lcv;)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
-
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;
-
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;
-