StainedGlassBlock .java

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

net.minecraft.world.level.blockclass19 linescommonextends TransparentBlock471 B

Implements

API Surface (1)

DyeColor getColor()

Fields & Constants (1)

color

Code Graph: Dependencies (4)

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

Full Source

StainedGlassBlock.java19 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 StainedGlassBlock extends TransparentBlock implements BeaconBeamBlock {
7
	private final DyeColor color;
8
9
	public StainedGlassBlock(final DyeColor color, final BlockBehaviour.Properties properties) {
10
		super(properties);
11
		this.color = color;
12
	}
13
14
	@Override
15
	public DyeColor getColor() {
16
		return this.color;
17
	}
18
}
19

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