MCPcopy Create free account
hub / github.com/Hypnotic-Development/Hypnotic-Client / get

Method get

src/main/java/dev/hypnotic/utils/Dir.java:29–38  ·  view source on GitHub ↗
(Direction dir)

Source from the content-addressed store, hash-verified

27 public static final byte EAST = 1 << 6;
28
29 public static byte get(Direction dir) {
30 return switch (dir) {
31 case UP -> UP;
32 case DOWN -> DOWN;
33 case NORTH -> NORTH;
34 case SOUTH -> SOUTH;
35 case WEST -> WEST;
36 case EAST -> EAST;
37 };
38 }
39
40 public static boolean is(int dir, byte idk) {
41 return (dir & idk) == idk;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected