ClipBlockStateContext .java

net.minecraft.world.level.ClipBlockStateContext (class, 30 lines): members: isTargetBlock, getFrom, getTo, block. imports: Vec3.

net.minecraft.world.levelclass30 linescommon630 B

API Surface (3)

Vec3 getTo()
Vec3 getFrom()
Predicate<BlockState> isTargetBlock()

Fields & Constants (3)

from
to
block

Code Graph: Dependencies (2)

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

Full Source

ClipBlockStateContext.java30 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.level;
2
3
import java.util.function.Predicate;
4
import net.minecraft.world.level.block.state.BlockState;
5
import net.minecraft.world.phys.Vec3;
6
7
public class ClipBlockStateContext {
8
	private final Vec3 from;
9
	private final Vec3 to;
10
	private final Predicate<BlockState> block;
11
12
	public ClipBlockStateContext(final Vec3 from, final Vec3 to, final Predicate<BlockState> block) {
13
		this.from = from;
14
		this.to = to;
15
		this.block = block;
16
	}
17
18
	public Vec3 getTo() {
19
		return this.to;
20
	}
21
22
	public Vec3 getFrom() {
23
		return this.from;
24
	}
25
26
	public Predicate<BlockState> isTargetBlock() {
27
		return this.block;
28
	}
29
}
30

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