mirror of
https://github.com/Flowsqy/ShopChest.git
synced 2025-01-07 07:47:41 +01:00
add 1.20.2 to PlatformLoader and update some import /unfinished
This commit is contained in:
parent
7c299d055d
commit
aa920651d0
@ -11,7 +11,7 @@ import net.minecraft.world.entity.Entity;
|
||||
import net.minecraft.world.entity.EntityType;
|
||||
import net.minecraft.world.phys.Vec3;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.craftbukkit.v1_20_R1.entity.CraftPlayer;
|
||||
import org.bukkit.craftbukkit.v1_20_R2.entity.CraftPlayer;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
|
@ -7,7 +7,7 @@ import net.minecraft.network.syncher.SynchedEntityData;
|
||||
import net.minecraft.world.entity.EntityType;
|
||||
import net.minecraft.world.entity.item.ItemEntity;
|
||||
import net.minecraft.world.phys.Vec3;
|
||||
import org.bukkit.craftbukkit.v1_20_R1.inventory.CraftItemStack;
|
||||
import org.bukkit.craftbukkit.v1_20_R2.inventory.CraftItemStack;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
|
@ -3,7 +3,7 @@ package de.epiceric.shopchest.nms.v1_20_R2;
|
||||
import de.epiceric.shopchest.nms.TextComponentHelper;
|
||||
import net.minecraft.nbt.CompoundTag;
|
||||
import net.minecraft.nbt.Tag;
|
||||
import org.bukkit.craftbukkit.v1_20_R1.inventory.CraftItemStack;
|
||||
import org.bukkit.craftbukkit.v1_20_R2.inventory.CraftItemStack;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
public class TextComponentHelperImpl implements TextComponentHelper {
|
||||
|
@ -93,6 +93,8 @@ public class PlatformLoader {
|
||||
case "34f399b4f2033891290b7f0700e9e47b": // 1.20
|
||||
case "bcf3dcb22ad42792794079f9443df2c0": // 1.20.1 (v1_20_R1)
|
||||
return new de.epiceric.shopchest.nms.v1_20_R1.PlatformImpl();
|
||||
case "3478a65bfd04b15b431fe107b3617dfc": //1.20.2
|
||||
return new de.epiceric.shopchest.nms.v1_20_R2.PlatformImpl();
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user