StainedGlassPaneBlock .java

net.minecraft.world.level.block.StainedGlassPaneBlock (class, 22 lines): members: getColor, color. imports: DyeColor, BlockBehaviour.

net.minecraft.world.level.blockclass22 linescommonextends IronBarsBlock659 B

Implements

API Surface (1)

DyeColor getColor()

Fields & Constants (1)

color

Code Graph: Dependencies (5)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

StainedGlassPaneBlock.java22 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.level.block;
2
3
import net.minecraft.world.item.DyeColor;
4
import net.minecraft.world.level.block.state.BlockBehaviour;
5
6
public class StainedGlassPaneBlock extends IronBarsBlock implements BeaconBeamBlock {
7
	private final DyeColor color;
8
9
	public StainedGlassPaneBlock(final DyeColor color, final BlockBehaviour.Properties properties) {
10
		super(properties);
11
		this.color = color;
12
		this.registerDefaultState(
13
			this.stateDefinition.any().setValue(NORTH, false).setValue(EAST, false).setValue(SOUTH, false).setValue(WEST, false).setValue(WATERLOGGED, false)
14
		);
15
	}
16
17
	@Override
18
	public DyeColor getColor() {
19
		return this.color;
20
	}
21
}
22

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