Package net.minecraft
Class class_8425
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.class_8425
- All Implemented Interfaces:
ItemConvertible,ToggleableFeature
- Mappings:
Namespace Name official cunintermediary net/minecraft/class_8425named net/minecraft/class_8425
-
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.Offsetter, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final IntPropertystatic final VoxelShape[]static final VoxelShape[]private static final intprivate static final intprivate static final intFields 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, requiredFeatures, resistance, settings, slipperiness, soundGroup, velocityMultiplierFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendProperties(StateManager.Builder<Block, BlockState> builder) Appends block state properties to this block.floatgetAmbientOcclusionLightLevel(BlockState state, BlockView world, BlockPos pos) getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) booleanhasSidedTransparency(BlockState state) Returns whether the block's transparency depends on the side of the block, like slabs.private static booleanmethod_50856(int int2, int int3) private static intmethod_50857(BlockState blockState, Vec3d vec3d) private static intmethod_50859(int int2) private static intmethod_50860(int int2, int int3) private static booleanmethod_50862(BlockState blockState) onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.Methods inherited from class net.minecraft.block.Block
afterBreak, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getPlacementState, getRawIdFromState, getRegistryEntry, getShapesForStates, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getStateWithProperties, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, isTransparent, method_50848, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toStringMethods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canPlaceAt, canReplace, createScreenHandlerFactory, emitsRedstonePower, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getLootTableId, getMaxHorizontalModelOffset, getOpacity, getRaycastShape, getRenderingSeed, getRenderType, getRequiredFeatures, getSidesShape, getStateForNeighborUpdate, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, isCullingShapeFullCube, isShapeFullCube, isSideInvisible, method_50846, method_50847, method_50855, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, prepare, randomTick, rotate, scheduledTickMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
-
Field Details
-
field_44222
public static final int field_44222- See Also:
- Mappings:
Namespace Name Mixin selector official aLcun;a:Iintermediary field_44222Lnet/minecraft/class_8425;field_44222:Inamed field_44222Lnet/minecraft/class_8425;field_44222:I
-
field_44227
private static final int field_44227- See Also:
- Mappings:
Namespace Name Mixin selector official fLcun;f:Iintermediary field_44227Lnet/minecraft/class_8425;field_44227:Inamed field_44227Lnet/minecraft/class_8425;field_44227:I
-
field_44223
public static final int field_44223- See Also:
- Mappings:
Namespace Name Mixin selector official bLcun;b:Iintermediary field_44223Lnet/minecraft/class_8425;field_44223:Inamed field_44223Lnet/minecraft/class_8425;field_44223:I
-
field_44228
private static final int field_44228- See Also:
- Mappings:
Namespace Name Mixin selector official gLcun;g:Iintermediary field_44228Lnet/minecraft/class_8425;field_44228:Inamed field_44228Lnet/minecraft/class_8425;field_44228:I
-
field_44224
- Mappings:
Namespace Name Mixin selector official cLcun;c:Ldhi;intermediary field_44224Lnet/minecraft/class_8425;field_44224:Lnet/minecraft/class_2758;named field_44224Lnet/minecraft/class_8425;field_44224:Lnet/minecraft/state/property/IntProperty;
-
field_44225
- Mappings:
Namespace Name Mixin selector official dLcun;d:[Lejb;intermediary field_44225Lnet/minecraft/class_8425;field_44225:[Lnet/minecraft/class_265;named field_44225Lnet/minecraft/class_8425;field_44225:[Lnet/minecraft/util/shape/VoxelShape;
-
field_44226
- Mappings:
Namespace Name Mixin selector official eLcun;e:[Lejb;intermediary field_44226Lnet/minecraft/class_8425;field_44226:[Lnet/minecraft/class_265;named field_44226Lnet/minecraft/class_8425;field_44226:[Lnet/minecraft/util/shape/VoxelShape;
-
field_44229
private static final int field_44229- See Also:
- Mappings:
Namespace Name Mixin selector official hLcun;h:Iintermediary field_44229Lnet/minecraft/class_8425;field_44229:Inamed field_44229Lnet/minecraft/class_8425;field_44229:I
-
-
Constructor Details
-
class_8425
- Mappings:
Namespace Name Mixin selector official <init>Ldgg;<init>(Ldgg$d;)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
-
method_50856
private static boolean method_50856(int int2, int int3) - Mappings:
Namespace Name Mixin selector official aLcun;a(II)Zintermediary method_50856Lnet/minecraft/class_8425;method_50856(II)Znamed method_50856Lnet/minecraft/class_8425;method_50856(II)Z
-
method_50859
private static int method_50859(int int2) - Mappings:
Namespace Name Mixin selector official bLcun;b(I)Iintermediary method_50859Lnet/minecraft/class_8425;method_50859(I)Inamed method_50859Lnet/minecraft/class_8425;method_50859(I)I
-
method_50860
private static int method_50860(int int2, int int3) - Mappings:
Namespace Name Mixin selector official bLcun;b(II)Iintermediary method_50860Lnet/minecraft/class_8425;method_50860(II)Inamed method_50860Lnet/minecraft/class_8425;method_50860(II)I
-
method_50862
- Mappings:
Namespace Name Mixin selector official hLcun;h(Ldgh;)Zintermediary method_50862Lnet/minecraft/class_8425;method_50862(Lnet/minecraft/class_2680;)Znamed method_50862Lnet/minecraft/class_8425;method_50862(Lnet/minecraft/block/BlockState;)Z
-
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 aLdgg;a(Ldgh;Lcql;Lgt;Lcby;Lbhh;Leie;)Lbhi;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;
-
method_50857
- Mappings:
Namespace Name Mixin selector official aLcun;a(Ldgh;Leii;)Iintermediary method_50857Lnet/minecraft/class_8425;method_50857(Lnet/minecraft/class_2680;Lnet/minecraft/class_243;)Inamed method_50857Lnet/minecraft/class_8425;method_50857(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Vec3d;)I
-
getOutlineShape
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) - Overrides:
getOutlineShapein classAbstractBlock- Mappings:
Namespace Name Mixin selector official aLdgg;a(Ldgh;Lcpr;Lgt;Lein;)Lejb;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;
-
hasSidedTransparency
Returns whether the block's transparency depends on the side of the block, like slabs.- Overrides:
hasSidedTransparencyin classAbstractBlock- Returns:
- whether the block's transparency depends on the side of the block, like slabs
- Mappings:
Namespace Name Mixin selector official f_Ldgg;f_(Ldgh;)Zintermediary method_9526Lnet/minecraft/class_4970;method_9526(Lnet/minecraft/class_2680;)Znamed hasSidedTransparencyLnet/minecraft/block/AbstractBlock;hasSidedTransparency(Lnet/minecraft/block/BlockState;)Z
-
getAmbientOcclusionLightLevel
- Overrides:
getAmbientOcclusionLightLevelin classAbstractBlock- Mappings:
Namespace Name Mixin selector official bLdgg;b(Ldgh;Lcpr;Lgt;)Fintermediary method_9575Lnet/minecraft/class_4970;method_9575(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Fnamed getAmbientOcclusionLightLevelLnet/minecraft/block/AbstractBlock;getAmbientOcclusionLightLevel(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)F
-
appendProperties
Appends block state properties to this block. To use this, override and callStateManager.Builder.add(net.minecraft.state.property.Property<?>[])inside the method. SeePropertiesfor the list of pre-defined properties.- Overrides:
appendPropertiesin classBlock- Mappings:
Namespace Name Mixin selector official aLctm;a(Ldgi$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
-