SoulSandBlock .java

net.minecraft.world.level.block.SoulSandBlock (class): members: getShadeBrightness, getVisualShape, getBlockSupportShape, getCollisionShape, SHAPE.

net.minecraft.world.level.blockclass44 linescommonextends Block1.4 KB

API Surface (5)

VoxelShape getCollisionShape(final BlockState state, final BlockGetter level, final BlockPos pos, final CollisionContext context)
VoxelShape getBlockSupportShape(final BlockState state, final BlockGetter level, final BlockPos pos)
VoxelShape getVisualShape(final BlockState state, final BlockGetter level, final BlockPos pos, final CollisionContext context)
boolean isPathfindable(final BlockState state, final PathComputationType type)
float getShadeBrightness(final BlockState state, final BlockGetter level, final BlockPos pos)

Fields & Constants (1)

SHAPE

Full Source

SoulSandBlock.java44 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.level.block;
2
3
import net.minecraft.core.BlockPos;
4
import net.minecraft.world.level.BlockGetter;
5
import net.minecraft.world.level.block.state.BlockBehaviour;
6
import net.minecraft.world.level.block.state.BlockState;
7
import net.minecraft.world.level.pathfinder.PathComputationType;
8
import net.minecraft.world.phys.shapes.CollisionContext;
9
import net.minecraft.world.phys.shapes.Shapes;
10
import net.minecraft.world.phys.shapes.VoxelShape;
11
12
public class SoulSandBlock extends Block {
13
	private static final VoxelShape SHAPE = Block.column(16.0, 0.0, 14.0);
14
15
	public SoulSandBlock(final BlockBehaviour.Properties properties) {
16
		super(properties);
17
	}
18
19
	@Override
20
	protected VoxelShape getCollisionShape(final BlockState state, final BlockGetter level, final BlockPos pos, final CollisionContext context) {
21
		return SHAPE;
22
	}
23
24
	@Override
25
	protected VoxelShape getBlockSupportShape(final BlockState state, final BlockGetter level, final BlockPos pos) {
26
		return Shapes.block();
27
	}
28
29
	@Override
30
	protected VoxelShape getVisualShape(final BlockState state, final BlockGetter level, final BlockPos pos, final CollisionContext context) {
31
		return Shapes.block();
32
	}
33
34
	@Override
35
	protected boolean isPathfindable(final BlockState state, final PathComputationType type) {
36
		return false;
37
	}
38
39
	@Override
40
	protected float getShadeBrightness(final BlockState state, final BlockGetter level, final BlockPos pos) {
41
		return 0.2F;
42
	}
43
}
44

Decompiled Minecraft 26.3 source of SoulSandBlock (net/minecraft/world/level/block/SoulSandBlock.java) with Mojang official mappings, stored verbatim on the site.