add 1.20.2 to PlatformLoader and update some import /unfinished

This commit is contained in:
xsmeths 2023-10-02 11:46:49 +01:00
parent 7c299d055d
commit aa920651d0
4 changed files with 5 additions and 3 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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 {

View File

@ -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;
}