BeaconBeamOwner .java

net.minecraft.world.level.block.entity.BeaconBeamOwner (interface, 30 lines): interface declaring 1 method. members: getBeamSections, Section.

net.minecraft.world.level.block.entityinterface30 linescommon478 B

API Surface (3)

void increaseHeight()
int getColor()
int getHeight()

Full Source

BeaconBeamOwner.java30 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.level.block.entity;
2
3
import java.util.List;
4
5
public interface BeaconBeamOwner {
6
	List<BeaconBeamOwner.Section> getBeamSections();
7
8
	class Section {
9
		private final int color;
10
		private int height;
11
12
		public Section(final int color) {
13
			this.color = color;
14
			this.height = 1;
15
		}
16
17
		public void increaseHeight() {
18
			this.height++;
19
		}
20
21
		public int getColor() {
22
			return this.color;
23
		}
24
25
		public int getHeight() {
26
			return this.height;
27
		}
28
	}
29
}
30

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