This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #[no_mangle] | |
| #[allow(non_snake_case)] | |
| pub extern "system" fn Java_com_destroystokyo_paper_daemon_PaperDaemonJni_receiveMessage( | |
| env: JNIEnv, | |
| _: JClass, | |
| client_desc: jint, | |
| ) -> jobject { | |
| let (message_type, message_length) = match read_meta(&env, client_desc) { | |
| Ok((l, r)) => (l, r), | |
| Err(_) => return jnull!(), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Minecraft Dev for IntelliJ | |
| * | |
| * https://minecraftdev.org | |
| * | |
| * Copyright (c) 2017 minecraft-dev | |
| * | |
| * MIT License | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private static final boolean[][] IS_ASSIGNABLE_BIT_SET = { | |
| {true, true, false, true, true, true, true}, // byte | |
| {false, true, false, true, true, true, true}, // short | |
| {false, false, true, true, true, true, true}, // char | |
| {false, false, false, true, true, true, true}, // int | |
| {false, false, false, false, true, true, true}, // long | |
| {false, false, false, false, false, true, true}, // float | |
| {false, false, false, false, false, false, true}, // double | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.demonwav.stupid; | |
| import java.lang.reflect.Field; | |
| import java.lang.reflect.Method; | |
| import java.lang.reflect.Modifier; | |
| public class Main { | |
| public static final Object object = new Object() { | |
| private final Object one = "one"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.demonwav.stupid; | |
| import java.lang.reflect.Field; | |
| import java.lang.reflect.Method; | |
| import java.lang.reflect.Modifier; | |
| public class Main { | |
| public static final Object object = new Object() { | |
| private final Object one = "one"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.demonwav.stupid; | |
| import java.lang.reflect.Field; | |
| import java.lang.reflect.Method; | |
| import java.lang.reflect.Modifier; | |
| public class Main { | |
| public static final Object object = new Object() { | |
| private final Object one = "one"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.demonwav.stupid; | |
| import java.lang.reflect.Field; | |
| import java.lang.reflect.Method; | |
| import java.lang.reflect.Modifier; | |
| public class Main { | |
| public static final Object helloWorldHolder = new Object() { | |
| private final Object words = "Goodbye World!"; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static void updateColorAsync(final World worldIn, final BlockPos glassPos) | |
| { | |
| HttpUtil.DOWNLOADER_EXECUTOR.submit(new Runnable() | |
| { | |
| public void run() | |
| { | |
| Chunk chunk = worldIn.getChunkFromBlockCoords(glassPos); | |
| for (int i = glassPos.getY() - 1; i >= 0; --i) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.demonwav.slimes; | |
| import org.bukkit.Chunk; | |
| import org.bukkit.entity.Player; | |
| import org.bukkit.plugin.java.JavaPlugin; | |
| import java.util.Random; | |
| public final class Slimes extends JavaPlugin { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Set<Module> goodModules = toImport.stream() | |
| .flatMap(n -> n.getChildren().stream()) | |
| .flatMap(n -> { | |
| if (n.getData() instanceof GradleSourceSetData) { | |
| return n.getChildren().stream() | |
| .filter(n1 -> n1.getData() instanceof DependencyData) | |
| .filter(n1 -> ((DependencyData) n1.getData()).getOwnerModule().getExternalName().contains("main")); | |
| } else { | |
| return Stream.of(n); | |
| } |
NewerOlder