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
| JsonObject MAPPINGS = MappingHelper.getJSONObject("block/modern_block_mappings"); | |
| String modernVersion = "1.17"; | |
| if (MAPPINGS.has(modernVersion)) { | |
| JsonObject map = MAPPINGS.getAsJsonObject(modernVersion); | |
| map.entrySet().forEach(entry -> { | |
| String fullBlockString = entry.getValue().getAsString(); | |
| BlockData blockData = Bukkit.createBlockData(fullBlockString); | |
| if (blockData.getMaterial().createBlockData().equals(blockData)) { |
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
| age=0 | |
| age=1 | |
| age=10 | |
| age=11 | |
| age=12 | |
| age=13 | |
| age=14 | |
| age=15 | |
| age=16 | |
| age=17 |
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 StateType AIR = StateTypes.builder().blastResistance(0.0).hardness(0.0).slipperiness(0.6).hasGravity(false).isAir(true).isBurnable(false).isFlammable(false).isOccluding(false).isSolid(false).isBlocking(false).requiresCorrectTool(false); | |
| public static StateType STONE = StateTypes.builder().blastResistance(6.0).hardness(1.5).slipperiness(0.6).hasGravity(false).isAir(false).isBurnable(false).isFlammable(false).isOccluding(true).isSolid(true).isBlocking(true).requiresCorrectTool(true); | |
| public static StateType GRANITE = StateTypes.builder().blastResistance(6.0).hardness(1.5).slipperiness(0.6).hasGravity(false).isAir(false).isBurnable(false).isFlammable(false).isOccluding(true).isSolid(true).isBlocking(true).requiresCorrectTool(true); | |
| public static StateType POLISHED_GRANITE = StateTypes.builder().blastResistance(6.0).hardness(1.5).slipperiness(0.6).hasGravity(false).isAir(false).isBurnable(false).isFlammable(false).isOccluding(true).isSolid(true).isBlocking(true).requiresCorrectTool(true); | |
| public sta |
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
| 1,0,minecraft:stone | |
| 1,1,minecraft:granite | |
| 1,2,minecraft:polished_granite | |
| 1,3,minecraft:diorite | |
| 1,4,minecraft:polished_diorite | |
| 1,5,minecraft:andesite | |
| 1,6,minecraft:polished_andesite | |
| 1,7,minecraft:stone | |
| 1,8,minecraft:stone | |
| 1,9,minecraft:stone |
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
| var POST_URL = "https://discordapp.com/api/webhooks/"; | |
| function onSubmit(e) { | |
| var form = FormApp.getActiveForm(); | |
| var allResponses = form.getResponses(); | |
| var latestResponse = allResponses[allResponses.length - 1]; | |
| var response = latestResponse.getItemResponses(); | |
| var items = []; | |
| for (var i = 0; i < response.length; 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
| import java.io.*; | |
| import java.lang.ProcessBuilder.Redirect; | |
| import java.net.URL; | |
| import java.util.Scanner; | |
| import java.util.zip.ZipEntry; | |
| import java.util.zip.ZipInputStream; | |
| public class Main { | |
| public static void main(String[] args) throws IOException, InterruptedException { | |
| Scanner userInput = new Scanner(System.in); |
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
| import java.io.*; | |
| import java.lang.ProcessBuilder.Redirect; | |
| import java.net.URL; | |
| import java.util.Scanner; | |
| import java.util.zip.ZipEntry; | |
| import java.util.zip.ZipInputStream; | |
| public class Main { | |
| public static void main(String[] args) throws IOException, InterruptedException { | |
| Scanner userInput = new Scanner(System.in); |
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 class TickEndEvent implements Initable { | |
| static Class<?> tickEnd = null; | |
| static { | |
| try { | |
| if (ServerVersion.getVersion().isOlderThanOrEquals(ServerVersion.v_1_8_8)) { | |
| tickEnd = NMSUtils.getNMSClass("IUpdatePlayerListBox"); | |
| } else if (ServerVersion.getVersion().isOlderThanOrEquals(ServerVersion.v_1_13_2)) { | |
| tickEnd = NMSUtils.getNMSClass("ITickable"); | |
| } else { |
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
| @Override | |
| public void onEnable() { | |
| StringBuilder allBlocks = new StringBuilder(); | |
| // Plugin startup logic | |
| World bukkitWorld = Bukkit.getWorlds().get(0); | |
| net.minecraft.server.v1_15_R1.World nmsWorld = ((CraftWorld) bukkitWorld).getHandle(); | |
| net.minecraft.server.v1_15_R1.Chunk nmsChunk = nmsWorld.getChunkAt(0, 0); | |
| net.minecraft.server.v1_15_R1.BlockPosition pos = new net.minecraft.server.v1_15_R1.BlockPosition(0, 0, 0); |
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 net.optifine.util; | |
| import net.minecraft.util.math.BlockPos; | |
| import net.minecraft.util.math.MathHelper; | |
| import net.minecraft.util.math.vector.Matrix4f; | |
| public class MathUtils { | |
| public static final float PI = (float)Math.PI; | |
| public static final float PI2 = (float)Math.PI * 2; | |
| public static final float PId2 = 1.5707964f; |