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 named net/minecraft/block/PowderSnowBlock
intermediary net/minecraft/class_5635
official dkv
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroup
Nested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.Offsetter, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<PowderSnowBlock> private static final VoxelShape
private static final float
private static final float
private static final double
private static final float
private static final double
private static final float
Fields 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, stateManager
Fields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableKey, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, velocityMultiplier
Fields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canPathfindThrough
(BlockState state, NavigationType type) Returns if an entity using navigation typetype
can navigate through this block.static boolean
canWalkOnPowderSnow
(Entity entity) Returns the sound played when filling a bucket with the fluid contained in this block.protected VoxelShape
getCameraCollisionShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) com.mojang.serialization.MapCodec
<PowderSnowBlock> getCodec()
protected VoxelShape
getCollisionShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) protected VoxelShape
getCullingShape
(BlockState state, BlockView world, BlockPos pos) protected boolean
isSideInvisible
(BlockState state, BlockState stateFrom, Direction direction) protected void
onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity) Called when the entity's collision box intersects the block.void
onLandedUpon
(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, toString
Methods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPlaceAt, canReplace, createCodec, createScreenHandlerFactory, createSettingsCodec, emitsRedstonePower, getAmbientOcclusionLightLevel, getComparatorOutput, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getLootTableKey, 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, scheduledTick
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/block/PowderSnowBlock;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_46415
Lnet/minecraft/class_5635;field_46415:Lcom/mojang/serialization/MapCodec;
official a
Ldkv;a:Lcom/mojang/serialization/MapCodec;
-
field_31216
private static final float field_31216- See Also:
- Mappings:
Namespace Name Mixin selector named field_31216
Lnet/minecraft/block/PowderSnowBlock;field_31216:F
intermediary field_31216
Lnet/minecraft/class_5635;field_31216:F
official b
Ldkv;b:F
-
HORIZONTAL_MOVEMENT_MULTIPLIER
private static final float HORIZONTAL_MOVEMENT_MULTIPLIER- See Also:
- Mappings:
Namespace Name Mixin selector named HORIZONTAL_MOVEMENT_MULTIPLIER
Lnet/minecraft/block/PowderSnowBlock;HORIZONTAL_MOVEMENT_MULTIPLIER:F
intermediary field_31217
Lnet/minecraft/class_5635;field_31217:F
official c
Ldkv;c:F
-
VERTICAL_MOVEMENT_MULTIPLIER
private static final float VERTICAL_MOVEMENT_MULTIPLIER- See Also:
- Mappings:
Namespace Name Mixin selector named VERTICAL_MOVEMENT_MULTIPLIER
Lnet/minecraft/block/PowderSnowBlock;VERTICAL_MOVEMENT_MULTIPLIER:F
intermediary field_31218
Lnet/minecraft/class_5635;field_31218:F
official d
Ldkv;d:F
-
field_31219
private static final float field_31219- See Also:
- Mappings:
Namespace Name Mixin selector named field_31219
Lnet/minecraft/block/PowderSnowBlock;field_31219:F
intermediary field_31219
Lnet/minecraft/class_5635;field_31219:F
official e
Ldkv;e:F
-
FALLING_SHAPE
- Mappings:
Namespace Name Mixin selector named FALLING_SHAPE
Lnet/minecraft/block/PowderSnowBlock;FALLING_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
intermediary field_31220
Lnet/minecraft/class_5635;field_31220:Lnet/minecraft/class_265;
official f
Ldkv;f:Lewm;
-
field_36189
private static final double field_36189- See Also:
- Mappings:
Namespace Name Mixin selector named field_36189
Lnet/minecraft/block/PowderSnowBlock;field_36189:D
intermediary field_36189
Lnet/minecraft/class_5635;field_36189:D
official g
Ldkv;g:D
-
SMALL_FALL_SOUND_MAX_DISTANCE
private static final double SMALL_FALL_SOUND_MAX_DISTANCE- See Also:
- Mappings:
Namespace Name Mixin selector named SMALL_FALL_SOUND_MAX_DISTANCE
Lnet/minecraft/block/PowderSnowBlock;SMALL_FALL_SOUND_MAX_DISTANCE:D
intermediary field_36190
Lnet/minecraft/class_5635;field_36190:D
official h
Ldkv;h:D
-
-
Constructor Details
-
PowderSnowBlock
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
intermediary <init>
Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)V
official <init>
Ldsd;<init>(Ldsd$d;)V
-
-
Method Details
-
getCodec
- Overrides:
getCodec
in classBlock
- Mappings:
Namespace Name Mixin selector named getCodec
Lnet/minecraft/block/AbstractBlock;getCodec()Lcom/mojang/serialization/MapCodec;
intermediary method_53969
Lnet/minecraft/class_4970;method_53969()Lcom/mojang/serialization/MapCodec;
official a
Ldsd;a()Lcom/mojang/serialization/MapCodec;
-
isSideInvisible
- Overrides:
isSideInvisible
in classAbstractBlock
- See Also:
- Mappings:
Namespace Name Mixin selector named isSideInvisible
Lnet/minecraft/block/AbstractBlock;isSideInvisible(Lnet/minecraft/block/BlockState;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;)Z
intermediary method_9522
Lnet/minecraft/class_4970;method_9522(Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;)Z
official a
Ldsd;a(Ldse;Ldse;Lje;)Z
-
getCullingShape
- Overrides:
getCullingShape
in classAbstractBlock
- See Also:
- Mappings:
Namespace Name Mixin selector named getCullingShape
Lnet/minecraft/block/AbstractBlock;getCullingShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/shape/VoxelShape;
intermediary method_9571
Lnet/minecraft/class_4970;method_9571(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Lnet/minecraft/class_265;
official f
Ldsd;f(Ldse;Ldbg;Liz;)Lewm;
-
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:
CactusBlock
damages the entity.AbstractPressurePlateBlock
triggers.CobwebBlock
slows the entity.EndPortalBlock
teleports the entity.HopperBlock
collects the item entity.
- Overrides:
onEntityCollision
in classAbstractBlock
- See Also:
- Mappings:
Namespace Name Mixin selector named onEntityCollision
Lnet/minecraft/block/AbstractBlock;onEntityCollision(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;)V
intermediary method_9548
Lnet/minecraft/class_4970;method_9548(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;)V
official a
Ldsd;a(Ldse;Ldca;Liz;Lbsw;)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.FarmlandBlock
overrides 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:
onLandedUpon
in classBlock
- Mappings:
Namespace Name Mixin selector named onLandedUpon
Lnet/minecraft/block/Block;onLandedUpon(Lnet/minecraft/world/World;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;F)V
intermediary method_9554
Lnet/minecraft/class_2248;method_9554(Lnet/minecraft/class_1937;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;F)V
official a
Ldfb;a(Ldca;Ldse;Liz;Lbsw;F)V
-
getCollisionShape
protected VoxelShape getCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) - Overrides:
getCollisionShape
in classAbstractBlock
- See Also:
- Mappings:
Namespace Name Mixin selector named getCollisionShape
Lnet/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;
intermediary method_9549
Lnet/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;
official b
Ldsd;b(Ldse;Ldbg;Liz;Levy;)Lewm;
-
getCameraCollisionShape
protected VoxelShape getCameraCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) - Overrides:
getCameraCollisionShape
in classAbstractBlock
- See Also:
- Mappings:
Namespace Name Mixin selector named getCameraCollisionShape
Lnet/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;
intermediary method_26159
Lnet/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;
official c
Ldsd;c(Ldse;Ldbg;Liz;Levy;)Lewm;
-
canWalkOnPowderSnow
- Mappings:
Namespace Name Mixin selector named canWalkOnPowderSnow
Lnet/minecraft/block/PowderSnowBlock;canWalkOnPowderSnow(Lnet/minecraft/entity/Entity;)Z
intermediary method_32355
Lnet/minecraft/class_5635;method_32355(Lnet/minecraft/class_1297;)Z
official a
Ldkv;a(Lbsw;)Z
-
tryDrainFluid
public ItemStack tryDrainFluid(@Nullable @Nullable PlayerEntity player, WorldAccess world, BlockPos pos, BlockState state) - Specified by:
tryDrainFluid
in interfaceFluidDrainable
- Mappings:
Namespace Name Mixin selector named tryDrainFluid
Lnet/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;
intermediary method_9700
Lnet/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;
official a
Ldfi;a(Lcmz;Ldcb;Liz;Ldse;)Lcur;
-
getBucketFillSound
Returns the sound played when filling a bucket with the fluid contained in this block.- Specified by:
getBucketFillSound
in interfaceFluidDrainable
- Returns:
- the sound played when filling a bucket with the fluid contained in this block
- See Also:
- Mappings:
Namespace Name Mixin selector named getBucketFillSound
Lnet/minecraft/block/FluidDrainable;getBucketFillSound()Ljava/util/Optional;
intermediary method_32351
Lnet/minecraft/class_2263;method_32351()Ljava/util/Optional;
official ar_
Ldfi;ar_()Ljava/util/Optional;
-