29 lines
612 B
Java
29 lines
612 B
Java
package net.minecraft.world.level;
|
|
|
|
import java.util.function.Predicate;
|
|
import net.minecraft.world.level.block.state.BlockState;
|
|
import net.minecraft.world.phys.Vec3;
|
|
|
|
public class ClipBlockStateContext {
|
|
private final Vec3 from;
|
|
private final Vec3 to;
|
|
private final Predicate<BlockState> block;
|
|
|
|
public ClipBlockStateContext(Vec3 from, Vec3 to, Predicate<BlockState> block) {
|
|
this.from = from;
|
|
this.to = to;
|
|
this.block = block;
|
|
}
|
|
|
|
public Vec3 getTo() {
|
|
return this.to;
|
|
}
|
|
|
|
public Vec3 getFrom() {
|
|
return this.from;
|
|
}
|
|
|
|
public Predicate<BlockState> isTargetBlock() {
|
|
return this.block;
|
|
}
|
|
}
|