BooleanOp .java

net.minecraft.world.phys.shapes.BooleanOp (interface): members: ONLY_SECOND, NOT_SECOND, ONLY_FIRST, CAUSED_BY, NOT_FIRST, NOT_SAME, NOT_AND, CAUSES, SAME.

net.minecraft.world.phys.shapesinterface23 linescommon989 B

API Surface (0)

No public/protected methods detected (fields or constants only).

Fields & Constants (16)

FALSE
NOT_OR
ONLY_SECOND
NOT_FIRST
ONLY_FIRST
NOT_SECOND
NOT_SAME
NOT_AND
AND
SAME
SECOND
CAUSES
FIRST
CAUSED_BY
OR
TRUE

Full Source

BooleanOp.java23 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.phys.shapes;
2
3
public interface BooleanOp {
4
	BooleanOp FALSE = (first, second) -> false;
5
	BooleanOp NOT_OR = (first, second) -> !first && !second;
6
	BooleanOp ONLY_SECOND = (first, second) -> second && !first;
7
	BooleanOp NOT_FIRST = (first, second) -> !first;
8
	BooleanOp ONLY_FIRST = (first, second) -> first && !second;
9
	BooleanOp NOT_SECOND = (first, second) -> !second;
10
	BooleanOp NOT_SAME = (first, second) -> first != second;
11
	BooleanOp NOT_AND = (first, second) -> !first || !second;
12
	BooleanOp AND = (first, second) -> first && second;
13
	BooleanOp SAME = (first, second) -> first == second;
14
	BooleanOp SECOND = (first, second) -> second;
15
	BooleanOp CAUSES = (first, second) -> !first || second;
16
	BooleanOp FIRST = (first, second) -> first;
17
	BooleanOp CAUSED_BY = (first, second) -> first || !second;
18
	BooleanOp OR = (first, second) -> first || second;
19
	BooleanOp TRUE = (first, second) -> true;
20
21
	boolean apply(final boolean first, final boolean second);
22
}
23

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