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 Object nbtToJava(Object nbt) { | |
| if (!(nbt instanceof NBTBase)) | |
| return nbt; | |
| NBTBase base = (NBTBase) nbt; | |
| if (base instanceof NBTTagByte) | |
| return ((NBTTagByte) base).f(); | |
| if (base instanceof NBTTagByteArray) | |
| return ((NBTTagByteArray) base).c(); | |
| if (base instanceof NBTTagShort) |
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 event; | |
| public abstract class Event { | |
| public String getName() { | |
| return getClass().getSimpleName(); | |
| } | |
| } |
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.dont.testes.utils; | |
| import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.Collection; | |
| import java.util.HashMap; | |
| import java.util.List; | |
| import java.util.function.BiConsumer; | |
| import java.util.function.Consumer; |
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 packetplayoutchat; | |
| import net.minecraft.server.v1_8_R3.PacketPlayOutChat; | |
| import org.bukkit.Bukkit; | |
| import org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer; | |
| import org.bukkit.entity.Player; | |
| import net.minecraft.server.v1_8_R3.IChatBaseComponent.ChatSerializer; |
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
| /* | |
| * File name: Glow.java | |
| */ | |
| import java.lang.reflect.Field; | |
| import org.bukkit.enchantments.Enchantment; | |
| import org.bukkit.enchantments.EnchantmentTarget; | |
| import org.bukkit.inventory.ItemStack; |
NewerOlder