Package net.minecraft.block
Class AnvilBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.FallingBlock
net.minecraft.block.AnvilBlock
- All Implemented Interfaces:
LandingBlock,ItemConvertible
- Mappings:
Namespace Name official chzintermediary net/minecraft/class_2199named net/minecraft/block/AnvilBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroupNested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final VoxelShapestatic final DirectionPropertyprivate static final floatprivate static final intprivate static final Textprivate static final VoxelShapeprivate static final VoxelShapeprivate static final VoxelShapeprivate static final VoxelShapeprivate static final VoxelShapeprivate static final VoxelShapeprivate static final VoxelShapeprivate static final VoxelShapeFields inherited from class net.minecraft.block.Block
field_31022, field_31023, field_31024, field_31025, field_31035, FORCE_STATE, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, SKIP_LIGHTING_UPDATES, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendProperties(StateManager.Builder<Block, BlockState> builder) booleancanPathfindThrough(BlockState state, BlockView world, BlockPos pos, NavigationType type) protected voidcreateScreenHandlerFactory(BlockState state, World world, BlockPos pos) intgetColor(BlockState state, BlockView world, BlockPos pos) static @Nullable BlockStategetLandingState(BlockState fallingState) getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) voidonDestroyedOnLanding(World world, BlockPos pos, FallingBlockEntity fallingBlockEntity) voidonLanding(World world, BlockPos pos, BlockState fallingBlockState, BlockState currentStateInPos, FallingBlockEntity fallingBlockEntity) onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.rotate(BlockState state, BlockRotation rotation) Applies a block rotation to a block state.Methods inherited from class net.minecraft.block.FallingBlock
canFallThrough, getFallDelay, getStateForNeighborUpdate, onBlockAdded, randomDisplayTick, scheduledTickMethods inherited from class net.minecraft.block.Block
afterBreak, appendStacks, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getRawIdFromState, getRegistryEntry, getShapesForStates, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getStateWithProperties, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, isTranslucent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toStringMethods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPlaceAt, canReplace, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getLootTableId, getMaxHorizontalModelOffset, getOpacity, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, hasSidedTransparency, isCullingShapeFullCube, isShapeFullCube, isSideInvisible, mirror, neighborUpdate, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, prepare, randomTickMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.block.LandingBlock
getEntityPredicate
-
Field Details
-
FACING
- Mappings:
Namespace Name Mixin selector official aLchz;a:Lcvn;intermediary field_9883Lnet/minecraft/class_2199;field_9883:Lnet/minecraft/class_2753;named FACINGLnet/minecraft/block/AnvilBlock;FACING:Lnet/minecraft/state/property/DirectionProperty;
-
BASE_SHAPE
- Mappings:
Namespace Name Mixin selector official bLchz;b:Ldwo;intermediary field_9882Lnet/minecraft/class_2199;field_9882:Lnet/minecraft/class_265;named BASE_SHAPELnet/minecraft/block/AnvilBlock;BASE_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
X_STEP_SHAPE
- Mappings:
Namespace Name Mixin selector official cLchz;c:Ldwo;intermediary field_9885Lnet/minecraft/class_2199;field_9885:Lnet/minecraft/class_265;named X_STEP_SHAPELnet/minecraft/block/AnvilBlock;X_STEP_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
X_STEM_SHAPE
- Mappings:
Namespace Name Mixin selector official dLchz;d:Ldwo;intermediary field_9888Lnet/minecraft/class_2199;field_9888:Lnet/minecraft/class_265;named X_STEM_SHAPELnet/minecraft/block/AnvilBlock;X_STEM_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
X_FACE_SHAPE
- Mappings:
Namespace Name Mixin selector official eLchz;e:Ldwo;intermediary field_9884Lnet/minecraft/class_2199;field_9884:Lnet/minecraft/class_265;named X_FACE_SHAPELnet/minecraft/block/AnvilBlock;X_FACE_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
Z_STEP_SHAPE
- Mappings:
Namespace Name Mixin selector official fLchz;f:Ldwo;intermediary field_9891Lnet/minecraft/class_2199;field_9891:Lnet/minecraft/class_265;named Z_STEP_SHAPELnet/minecraft/block/AnvilBlock;Z_STEP_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
Z_STEM_SHAPE
- Mappings:
Namespace Name Mixin selector official gLchz;g:Ldwo;intermediary field_9889Lnet/minecraft/class_2199;field_9889:Lnet/minecraft/class_265;named Z_STEM_SHAPELnet/minecraft/block/AnvilBlock;Z_STEM_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
Z_FACE_SHAPE
- Mappings:
Namespace Name Mixin selector official hLchz;h:Ldwo;intermediary field_9886Lnet/minecraft/class_2199;field_9886:Lnet/minecraft/class_265;named Z_FACE_SHAPELnet/minecraft/block/AnvilBlock;Z_FACE_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
X_AXIS_SHAPE
- Mappings:
Namespace Name Mixin selector official iLchz;i:Ldwo;intermediary field_9887Lnet/minecraft/class_2199;field_9887:Lnet/minecraft/class_265;named X_AXIS_SHAPELnet/minecraft/block/AnvilBlock;X_AXIS_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
Z_AXIS_SHAPE
- Mappings:
Namespace Name Mixin selector official jLchz;j:Ldwo;intermediary field_9892Lnet/minecraft/class_2199;field_9892:Lnet/minecraft/class_265;named Z_AXIS_SHAPELnet/minecraft/block/AnvilBlock;Z_AXIS_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
TITLE
- Mappings:
Namespace Name Mixin selector official kLchz;k:Lrm;intermediary field_17349Lnet/minecraft/class_2199;field_17349:Lnet/minecraft/class_2561;named TITLELnet/minecraft/block/AnvilBlock;TITLE:Lnet/minecraft/text/Text;
-
FALLING_BLOCK_ENTITY_DAMAGE_MULTIPLIER
private static final float FALLING_BLOCK_ENTITY_DAMAGE_MULTIPLIER- See Also:
- Mappings:
Namespace Name Mixin selector official lLchz;l:Fintermediary field_30993Lnet/minecraft/class_2199;field_30993:Fnamed FALLING_BLOCK_ENTITY_DAMAGE_MULTIPLIERLnet/minecraft/block/AnvilBlock;FALLING_BLOCK_ENTITY_DAMAGE_MULTIPLIER:F
-
FALLING_BLOCK_ENTITY_MAX_DAMAGE
private static final int FALLING_BLOCK_ENTITY_MAX_DAMAGE- See Also:
- Mappings:
Namespace Name Mixin selector official mLchz;m:Iintermediary field_30994Lnet/minecraft/class_2199;field_30994:Inamed FALLING_BLOCK_ENTITY_MAX_DAMAGELnet/minecraft/block/AnvilBlock;FALLING_BLOCK_ENTITY_MAX_DAMAGE:I
-
-
Constructor Details
-
AnvilBlock
- Mappings:
Namespace Name Mixin selector official <init>Lcus;<init>(Lcus$c;)Vintermediary <init>Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)Vnamed <init>Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
-
-
Method Details
-
getPlacementState
- Overrides:
getPlacementStatein classBlock- Mappings:
Namespace Name Mixin selector official aLciy;a(Lccc;)Lcut;intermediary method_9605Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;named getPlacementStateLnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;
-
onUse
public ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player. This, by default, is bound to using the right mouse button.This method is called on both the logical client and logical server, so take caution when overriding this method. The logical side can be checked using
world.isClient().If the action result is successful on a logical client, then the action will be sent to the logical server for processing.
- Overrides:
onUsein classAbstractBlock- Returns:
- an action result that specifies if using the block was successful.
- Mappings:
Namespace Name Mixin selector official aLcus;a(Lcut;Lcgc;Lgt;Lbth;Lazn;Ldvr;)Lazo;intermediary method_9534Lnet/minecraft/class_4970;method_9534(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_3965;)Lnet/minecraft/class_1269;named onUseLnet/minecraft/block/AbstractBlock;onUse(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/util/hit/BlockHitResult;)Lnet/minecraft/util/ActionResult;
-
createScreenHandlerFactory
@Nullable public @Nullable NamedScreenHandlerFactory createScreenHandlerFactory(BlockState state, World world, BlockPos pos) - Overrides:
createScreenHandlerFactoryin classAbstractBlock- Mappings:
Namespace Name Mixin selector official bLcus;b(Lcut;Lcgc;Lgt;)Lazr;intermediary method_17454Lnet/minecraft/class_4970;method_17454(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Lnet/minecraft/class_3908;named createScreenHandlerFactoryLnet/minecraft/block/AbstractBlock;createScreenHandlerFactory(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/screen/NamedScreenHandlerFactory;
-
getOutlineShape
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) - Overrides:
getOutlineShapein classAbstractBlock- Mappings:
Namespace Name Mixin selector official aLcus;a(Lcut;Lcfi;Lgt;Ldwa;)Ldwo;intermediary method_9530Lnet/minecraft/class_4970;method_9530(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Lnet/minecraft/class_265;named getOutlineShapeLnet/minecraft/block/AbstractBlock;getOutlineShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Lnet/minecraft/util/shape/VoxelShape;
-
configureFallingBlockEntity
- Overrides:
configureFallingBlockEntityin classFallingBlock- Mappings:
Namespace Name Mixin selector official aLclj;a(Lbpz;)Vintermediary method_10132Lnet/minecraft/class_2346;method_10132(Lnet/minecraft/class_1540;)Vnamed configureFallingBlockEntityLnet/minecraft/block/FallingBlock;configureFallingBlockEntity(Lnet/minecraft/entity/FallingBlockEntity;)V
-
onLanding
public void onLanding(World world, BlockPos pos, BlockState fallingBlockState, BlockState currentStateInPos, FallingBlockEntity fallingBlockEntity) - Mappings:
Namespace Name Mixin selector official aLcli;a(Lcgc;Lgt;Lcut;Lcut;Lbpz;)Vintermediary method_10127Lnet/minecraft/class_5688;method_10127(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;Lnet/minecraft/class_1540;)Vnamed onLandingLnet/minecraft/block/LandingBlock;onLanding(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/FallingBlockEntity;)V
-
onDestroyedOnLanding
- Mappings:
Namespace Name Mixin selector official aLcli;a(Lcgc;Lgt;Lbpz;)Vintermediary method_10129Lnet/minecraft/class_5688;method_10129(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1540;)Vnamed onDestroyedOnLandingLnet/minecraft/block/LandingBlock;onDestroyedOnLanding(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/FallingBlockEntity;)V
-
getDamageSource
- Mappings:
Namespace Name Mixin selector official bLcli;b()Lbab;intermediary method_32898Lnet/minecraft/class_5688;method_32898()Lnet/minecraft/class_1282;named getDamageSourceLnet/minecraft/block/LandingBlock;getDamageSource()Lnet/minecraft/entity/damage/DamageSource;
-
getLandingState
- Mappings:
Namespace Name Mixin selector official eLchz;e(Lcut;)Lcut;intermediary method_9346Lnet/minecraft/class_2199;method_9346(Lnet/minecraft/class_2680;)Lnet/minecraft/class_2680;named getLandingStateLnet/minecraft/block/AnvilBlock;getLandingState(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockState;
-
rotate
Applies a block rotation to a block state.By default, this returns the provided block state.
- Overrides:
rotatein classAbstractBlock- Returns:
- the rotated block state
- Mappings:
Namespace Name Mixin selector official aLcus;a(Lcut;Lcpb;)Lcut;intermediary method_9598Lnet/minecraft/class_4970;method_9598(Lnet/minecraft/class_2680;Lnet/minecraft/class_2470;)Lnet/minecraft/class_2680;named rotateLnet/minecraft/block/AbstractBlock;rotate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/block/BlockState;
-
appendProperties
- Overrides:
appendPropertiesin classBlock- Mappings:
Namespace Name Mixin selector official aLciy;a(Lcuu$a;)Vintermediary method_9515Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)Vnamed appendPropertiesLnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
-
getColor
- Overrides:
getColorin classFallingBlock- Mappings:
Namespace Name Mixin selector official dLclj;d(Lcut;Lcfi;Lgt;)Iintermediary method_10130Lnet/minecraft/class_2346;method_10130(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Inamed getColorLnet/minecraft/block/FallingBlock;getColor(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)I
-