Package net.minecraft.block
Class PowderSnowBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.PowderSnowBlock
- All Implemented Interfaces:
FluidDrainable,ItemConvertible,ToggleableFeature
- Mappings:
Namespace Name official dftintermediary net/minecraft/class_5635named net/minecraft/block/PowderSnowBlock
-
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 com.mojang.serialization.MapCodec<PowderSnowBlock> private static final VoxelShapeprivate static final floatprivate static final floatprivate static final doubleprivate static final floatprivate static final doubleprivate static final floatFields inherited from class net.minecraft.block.Block
field_31023, field_31024, field_31025, field_31035, FORCE_STATE, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_ALL_AND_REDRAW, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, 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 booleancanPathfindThrough(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetypecan navigate through this block.static booleancanWalkOnPowderSnow(Entity entity) Returns the sound played when filling a bucket with the fluid contained in this block.protected VoxelShapegetCameraCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) com.mojang.serialization.MapCodec<PowderSnowBlock> getCodec()protected VoxelShapegetCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) protected VoxelShapegetCullingShape(BlockState state, BlockView world, BlockPos pos) protected booleanisSideInvisible(BlockState state, BlockState stateFrom, Direction direction) protected voidonEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) Called when the entity's collision box intersects the block.voidonLandedUpon(World world, BlockState state, BlockPos pos, Entity entity, float fallDistance) Called when the entity lands on the block.tryDrainFluid(@Nullable PlayerEntity player, WorldAccess world, BlockPos pos, BlockState state) Methods inherited from class net.minecraft.block.Block
afterBreak, appendProperties, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getPlacementState, getRawIdFromState, getRegistryEntry, getShapesForStates, getSlipperiness, getStateFromRawId, getStateManager, getStateWithProperties, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasTopRim, isFaceFullSquare, isShapeFullCube, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toStringMethods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPlaceAt, canReplace, createCodec, createScreenHandlerFactory, createSettingsCodec, emitsRedstonePower, getAmbientOcclusionLightLevel, getComparatorOutput, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getLootTableId, getMaxHorizontalModelOffset, getOpacity, getOutlineShape, getRaycastShape, getRenderingSeed, getRenderType, getRequiredFeatures, getSettings, getSidesShape, getSoundGroup, getStateForNeighborUpdate, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, hasRandomTicks, hasSidedTransparency, isCullingShapeFullCube, isShapeFullCube, isTransparent, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onExploded, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, onUseWithItem, 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
-
CODEC
- Mappings:
Namespace Name Mixin selector official aLdft;a:Lcom/mojang/serialization/MapCodec;intermediary field_46415Lnet/minecraft/class_5635;field_46415:Lcom/mojang/serialization/MapCodec;named CODECLnet/minecraft/block/PowderSnowBlock;CODEC:Lcom/mojang/serialization/MapCodec;
-
field_31216
private static final float field_31216- See Also:
- Mappings:
Namespace Name Mixin selector official bLdft;b:Fintermediary field_31216Lnet/minecraft/class_5635;field_31216:Fnamed field_31216Lnet/minecraft/block/PowderSnowBlock;field_31216:F
-
HORIZONTAL_MOVEMENT_MULTIPLIER
private static final float HORIZONTAL_MOVEMENT_MULTIPLIER- See Also:
- Mappings:
Namespace Name Mixin selector official cLdft;c:Fintermediary field_31217Lnet/minecraft/class_5635;field_31217:Fnamed HORIZONTAL_MOVEMENT_MULTIPLIERLnet/minecraft/block/PowderSnowBlock;HORIZONTAL_MOVEMENT_MULTIPLIER:F
-
VERTICAL_MOVEMENT_MULTIPLIER
private static final float VERTICAL_MOVEMENT_MULTIPLIER- See Also:
- Mappings:
Namespace Name Mixin selector official dLdft;d:Fintermediary field_31218Lnet/minecraft/class_5635;field_31218:Fnamed VERTICAL_MOVEMENT_MULTIPLIERLnet/minecraft/block/PowderSnowBlock;VERTICAL_MOVEMENT_MULTIPLIER:F
-
field_31219
private static final float field_31219- See Also:
- Mappings:
Namespace Name Mixin selector official eLdft;e:Fintermediary field_31219Lnet/minecraft/class_5635;field_31219:Fnamed field_31219Lnet/minecraft/block/PowderSnowBlock;field_31219:F
-
FALLING_SHAPE
- Mappings:
Namespace Name Mixin selector official fLdft;f:Leqk;intermediary field_31220Lnet/minecraft/class_5635;field_31220:Lnet/minecraft/class_265;named FALLING_SHAPELnet/minecraft/block/PowderSnowBlock;FALLING_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
field_36189
private static final double field_36189- See Also:
- Mappings:
Namespace Name Mixin selector official gLdft;g:Dintermediary field_36189Lnet/minecraft/class_5635;field_36189:Dnamed field_36189Lnet/minecraft/block/PowderSnowBlock;field_36189:D
-
SMALL_FALL_SOUND_MAX_DISTANCE
private static final double SMALL_FALL_SOUND_MAX_DISTANCE- See Also:
- Mappings:
Namespace Name Mixin selector official hLdft;h:Dintermediary field_36190Lnet/minecraft/class_5635;field_36190:Dnamed SMALL_FALL_SOUND_MAX_DISTANCELnet/minecraft/block/PowderSnowBlock;SMALL_FALL_SOUND_MAX_DISTANCE:D
-
-
Constructor Details
-
PowderSnowBlock
- Mappings:
Namespace Name Mixin selector official <init>Ldmy;<init>(Ldmy$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
-
getCodec
- Overrides:
getCodecin classBlock- Mappings:
Namespace Name Mixin selector official aLdmy;a()Lcom/mojang/serialization/MapCodec;intermediary method_53969Lnet/minecraft/class_4970;method_53969()Lcom/mojang/serialization/MapCodec;named getCodecLnet/minecraft/block/AbstractBlock;getCodec()Lcom/mojang/serialization/MapCodec;
-
isSideInvisible
- Overrides:
isSideInvisiblein classAbstractBlock- See Also:
- Mappings:
Namespace Name Mixin selector official aLdmy;a(Ldmz;Ldmz;Lih;)Zintermediary method_9522Lnet/minecraft/class_4970;method_9522(Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;)Znamed isSideInvisibleLnet/minecraft/block/AbstractBlock;isSideInvisible(Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;)Z
-
getCullingShape
- Overrides:
getCullingShapein classAbstractBlock- See Also:
- Mappings:
Namespace Name Mixin selector official fLdmy;f(Ldmz;Lcwf;Lib;)Leqk;intermediary method_9571Lnet/minecraft/class_4970;method_9571(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Lnet/minecraft/class_265;named getCullingShapeLnet/minecraft/block/AbstractBlock;getCullingShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/shape/VoxelShape;
-
onEntityCollision
Called when the entity's collision box intersects the block. Therefore, this method is not called for blocks with a collision; useBlock.onSteppedOn(net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState, net.minecraft.entity.Entity)for those blocks.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.Here are some examples:
CactusBlockdamages the entity.AbstractPressurePlateBlocktriggers.CobwebBlockslows the entity.EndPortalBlockteleports the entity.HopperBlockcollects the item entity.
- Overrides:
onEntityCollisionin classAbstractBlock- See Also:
- Mappings:
Namespace Name Mixin selector official aLdmy;a(Ldmz;Lcwz;Lib;Lbow;)Vintermediary method_9548Lnet/minecraft/class_4970;method_9548(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;)Vnamed onEntityCollisionLnet/minecraft/block/AbstractBlock;onEntityCollision(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;)V
-
onLandedUpon
public void onLandedUpon(World world, BlockState state, BlockPos pos, Entity entity, float fallDistance) Called when the entity lands on the block.Default implementation deals fall damage to the entity. Blocks that increase or reduce fall damage (like
HayBlock) should override this.FarmlandBlockoverrides this method to convert the block to dirt.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.- Overrides:
onLandedUponin classBlock- Mappings:
Namespace Name Mixin selector official aLdaa;a(Lcwz;Ldmz;Lib;Lbow;F)Vintermediary method_9554Lnet/minecraft/class_2248;method_9554(Lnet/minecraft/class_1937;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;F)Vnamed onLandedUponLnet/minecraft/block/Block;onLandedUpon(Lnet/minecraft/world/World;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;F)V
-
getCollisionShape
protected VoxelShape getCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) - Overrides:
getCollisionShapein classAbstractBlock- See Also:
- Mappings:
Namespace Name Mixin selector official bLdmy;b(Ldmz;Lcwf;Lib;Lepw;)Leqk;intermediary method_9549Lnet/minecraft/class_4970;method_9549(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Lnet/minecraft/class_265;named getCollisionShapeLnet/minecraft/block/AbstractBlock;getCollisionShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Lnet/minecraft/util/shape/VoxelShape;
-
getCameraCollisionShape
protected VoxelShape getCameraCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) - Overrides:
getCameraCollisionShapein classAbstractBlock- See Also:
- Mappings:
Namespace Name Mixin selector official cLdmy;c(Ldmz;Lcwf;Lib;Lepw;)Leqk;intermediary method_26159Lnet/minecraft/class_4970;method_26159(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Lnet/minecraft/class_265;named getCameraCollisionShapeLnet/minecraft/block/AbstractBlock;getCameraCollisionShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Lnet/minecraft/util/shape/VoxelShape;
-
canWalkOnPowderSnow
- Mappings:
Namespace Name Mixin selector official aLdft;a(Lbow;)Zintermediary method_32355Lnet/minecraft/class_5635;method_32355(Lnet/minecraft/class_1297;)Znamed canWalkOnPowderSnowLnet/minecraft/block/PowderSnowBlock;canWalkOnPowderSnow(Lnet/minecraft/entity/Entity;)Z
-
tryDrainFluid
public ItemStack tryDrainFluid(@Nullable @Nullable PlayerEntity player, WorldAccess world, BlockPos pos, BlockState state) - Specified by:
tryDrainFluidin interfaceFluidDrainable- Mappings:
Namespace Name Mixin selector official aLdah;a(Lcis;Lcxa;Lib;Ldmz;)Lcqk;intermediary method_9700Lnet/minecraft/class_2263;method_9700(Lnet/minecraft/class_1657;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Lnet/minecraft/class_1799;named tryDrainFluidLnet/minecraft/block/FluidDrainable;tryDrainFluid(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/item/ItemStack;
-
getBucketFillSound
Returns the sound played when filling a bucket with the fluid contained in this block.- Specified by:
getBucketFillSoundin interfaceFluidDrainable- Returns:
- the sound played when filling a bucket with the fluid contained in this block
- See Also:
- Mappings:
Namespace Name Mixin selector official av_Ldah;av_()Ljava/util/Optional;intermediary method_32351Lnet/minecraft/class_2263;method_32351()Ljava/util/Optional;named getBucketFillSoundLnet/minecraft/block/FluidDrainable;getBucketFillSound()Ljava/util/Optional;
-