HangingSignBlockEntity .java

net.minecraft.world.level.block.entity.HangingSignBlockEntity (class): members: getSignInteractionFailedSoundEvent, MAX_TEXT_LINE_WIDTH, getTextLineHeight.

net.minecraft.world.level.block.entityclass31 linescommonextends SignBlockEntity804 B

API Surface (3)

int getTextLineHeight()
int getMaxTextLineWidth()
SoundEvent getSignInteractionFailedSoundEvent()

Fields & Constants (2)

MAX_TEXT_LINE_WIDTH
TEXT_LINE_HEIGHT

Code Graph: Dependencies (5)

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

Full Source

HangingSignBlockEntity.java31 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.level.block.entity;
2
3
import net.minecraft.core.BlockPos;
4
import net.minecraft.sounds.SoundEvent;
5
import net.minecraft.sounds.SoundEvents;
6
import net.minecraft.world.level.block.state.BlockState;
7
8
public class HangingSignBlockEntity extends SignBlockEntity {
9
	private static final int MAX_TEXT_LINE_WIDTH = 60;
10
	private static final int TEXT_LINE_HEIGHT = 9;
11
12
	public HangingSignBlockEntity(final BlockPos worldPosition, final BlockState blockState) {
13
		super(BlockEntityTypes.HANGING_SIGN, worldPosition, blockState);
14
	}
15
16
	@Override
17
	public int getTextLineHeight() {
18
		return 9;
19
	}
20
21
	@Override
22
	public int getMaxTextLineWidth() {
23
		return 60;
24
	}
25
26
	@Override
27
	public SoundEvent getSignInteractionFailedSoundEvent() {
28
		return SoundEvents.WAXED_HANGING_SIGN_INTERACT_FAIL;
29
	}
30
}
31

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