BaseCoralFanBlock .java

net.minecraft.world.level.block.BaseCoralFanBlock (class, 28 lines): extends BaseCoralPlantTypeBlock. members: SHAPE, getShape. imports: CollisionContext.

net.minecraft.world.level.blockclass28 linescommonextends BaseCoralPlantTypeBlock914 B

API Surface (1)

VoxelShape getShape(final BlockState state, final BlockGetter level, final BlockPos pos, final CollisionContext context)

Fields & Constants (1)

SHAPE

Full Source

BaseCoralFanBlock.java28 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.phys.shapes.CollisionContext;
8
import net.minecraft.world.phys.shapes.VoxelShape;
9
10
/**
11
 * Access widened by fabric-transitive-access-wideners-v1 to accessible
12
 */
13
public class BaseCoralFanBlock extends BaseCoralPlantTypeBlock {
14
	private static final VoxelShape SHAPE = Block.column(12.0, 0.0, 4.0);
15
16
	/**
17
	 * Access widened by fabric-transitive-access-wideners-v1 to accessible
18
	 */
19
	public BaseCoralFanBlock(final BlockBehaviour.Properties properties) {
20
		super(properties);
21
	}
22
23
	@Override
24
	protected VoxelShape getShape(final BlockState state, final BlockGetter level, final BlockPos pos, final CollisionContext context) {
25
		return SHAPE;
26
	}
27
}
28

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