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
public class PowderSnowBlock extends Block implements FluidDrainable
-
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.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
-
Field Summary
Fields inherited from class net.minecraft.block.Block
LOGGER, STATE_IDS, stateManager
Fields inherited from class net.minecraft.block.AbstractBlock
collidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier
-
Constructor Summary
Constructors Constructor Description PowderSnowBlock(AbstractBlock.Settings settings)
-
Method Summary
Modifier and Type Method Description static boolean
canWalkOnPowderSnow(Entity entity)
VoxelShape
getCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
VoxelShape
getCullingShape(BlockState state, BlockView world, BlockPos pos)
Optional<SoundEvent>
getDrainSound()
VoxelShape
getVisualShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
boolean
isSideInvisible(BlockState state, BlockState stateFrom, Direction direction)
void
onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity)
static void
spawnParticles(World world, Vec3d pos)
ItemStack
tryDrainFluid(WorldAccess world, BlockPos pos, BlockState state)
Methods inherited from class net.minecraft.block.Block
addStacksForDisplay, afterBreak, appendProperties, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getPlacementState, getRawIdFromState, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, isTranslucent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toString
Methods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canPlaceAt, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getComparatorOutput, getDefaultMapColor, getDroppedStacks, getFluidState, getLootTableId, getMaxModelOffset, getOffsetType, getOpacity, getOutlineShape, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getStateForNeighborUpdate, getStrongRedstonePower, getWeakRedstonePower, hasComparatorOutput, hasSidedTransparency, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, randomTick, rotate, scheduledTick
-
Constructor Details
-
PowderSnowBlock
-
-
Method Details
-
isSideInvisible
@Environment(CLIENT) public boolean isSideInvisible(BlockState state, BlockState stateFrom, Direction direction)- Overrides:
isSideInvisible
in classAbstractBlock
-
getCullingShape
- Overrides:
getCullingShape
in classAbstractBlock
-
onEntityCollision
- Overrides:
onEntityCollision
in classAbstractBlock
-
getCollisionShape
public VoxelShape getCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)- Overrides:
getCollisionShape
in classAbstractBlock
-
getVisualShape
public VoxelShape getVisualShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)- Overrides:
getVisualShape
in classAbstractBlock
-
spawnParticles
-
canWalkOnPowderSnow
-
tryDrainFluid
- Specified by:
tryDrainFluid
in interfaceFluidDrainable
-
getDrainSound
- Specified by:
getDrainSound
in interfaceFluidDrainable
-