HalfTransparentBlock .java

net.minecraft.world.level.block.HalfTransparentBlock (class, 23 lines): extends Block. members: skipRendering. imports: BlockBehaviour.

net.minecraft.world.level.blockclass23 linescommonextends Block740 B

API Surface (1)

boolean skipRendering(final BlockState state, final BlockState neighborState, final Direction direction)

Code Graph: Dependencies (4)

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

Full Source

HalfTransparentBlock.java23 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.level.block;
2
3
import net.minecraft.core.Direction;
4
import net.minecraft.world.level.block.state.BlockBehaviour;
5
import net.minecraft.world.level.block.state.BlockState;
6
7
/**
8
 * Access widened by fabric-transitive-access-wideners-v1 to accessible
9
 */
10
public class HalfTransparentBlock extends Block {
11
	/**
12
	 * Access widened by fabric-transitive-access-wideners-v1 to accessible
13
	 */
14
	public HalfTransparentBlock(final BlockBehaviour.Properties properties) {
15
		super(properties);
16
	}
17
18
	@Override
19
	protected boolean skipRendering(final BlockState state, final BlockState neighborState, final Direction direction) {
20
		return neighborState.is(this) ? true : super.skipRendering(state, neighborState, direction);
21
	}
22
}
23

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