org.bukkit.UnsafeValues Java Examples
The following examples show how to use
org.bukkit.UnsafeValues.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ConfigPre113ImporterTest.java From uSkyBlock with GNU General Public License v3.0 | 5 votes |
@BeforeClass public static void SetupAll() throws Exception { Server server = setupServerMock(); UnsafeValues unsafeMock = mock(UnsafeValues.class); when(unsafeMock.fromLegacy((Material) any())).thenAnswer(a -> a.getArguments()[0]); when(server.getUnsafe()).thenReturn(unsafeMock); }
Example #2
Source File: CraftServer.java From Thermos with GNU General Public License v3.0 | 4 votes |
@Deprecated @Override public UnsafeValues getUnsafe() { return CraftMagicNumbers.INSTANCE; }