mirror of
https://github.com/Flowsqy/ShopChest.git
synced 2024-12-01 01:53:22 +01:00
Move nms implementation to dedicated package
This commit is contained in:
parent
2130326f14
commit
365034c08c
@ -5,12 +5,12 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>shopchest-nms</artifactId>
|
<artifactId>shopchest-nms</artifactId>
|
||||||
<groupId>de.epiceric</groupId>
|
<groupId>de.epiceric</groupId>
|
||||||
<version>1.1.0</version>
|
<version>1.1.1-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<artifactId>shopchest-nms-all</artifactId>
|
<artifactId>shopchest-nms-all</artifactId>
|
||||||
<version>1.1.0</version>
|
<version>1.1.1-SNAPSHOT</version>
|
||||||
|
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>shopchest-nms</artifactId>
|
<artifactId>shopchest-nms</artifactId>
|
||||||
<groupId>de.epiceric</groupId>
|
<groupId>de.epiceric</groupId>
|
||||||
<version>1.1.0</version>
|
<version>1.1.1-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
package de.epiceric.shopchest.nms;
|
package de.epiceric.shopchest.nms;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperties;
|
import de.epiceric.shopchest.nms.network.entity.FakeArmorStand;
|
||||||
|
import de.epiceric.shopchest.nms.network.entity.FakeItem;
|
||||||
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperties;
|
||||||
|
import de.epiceric.shopchest.nms.network.PacketQueue;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The platform that create all nms objects
|
* The platform that create all nms objects
|
||||||
@ -32,7 +35,7 @@ public interface Platform {
|
|||||||
TextComponentHelper getTextComponentHelper();
|
TextComponentHelper getTextComponentHelper();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a list of {@link de.epiceric.shopchest.nms.metadata.MetadataProperty}
|
* Get a list of {@link de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperty}
|
||||||
*
|
*
|
||||||
* @return The {@link MetadataProperties} instance
|
* @return The {@link MetadataProperties} instance
|
||||||
*/
|
*/
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
package de.epiceric.shopchest.nms.metadata;
|
|
||||||
|
|
||||||
public interface MetadataValue {
|
|
||||||
|
|
||||||
}
|
|
@ -1,4 +1,4 @@
|
|||||||
package de.epiceric.shopchest.nms;
|
package de.epiceric.shopchest.nms.network;
|
||||||
|
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package de.epiceric.shopchest.nms;
|
package de.epiceric.shopchest.nms.network.entity;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represent an ArmorStand that only exists clientside
|
* Represent an ArmorStand that only exists clientside
|
@ -1,6 +1,7 @@
|
|||||||
package de.epiceric.shopchest.nms;
|
package de.epiceric.shopchest.nms.network.entity;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataValue;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataValue;
|
||||||
|
import de.epiceric.shopchest.nms.network.PacketQueue;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.util.Vector;
|
import org.bukkit.util.Vector;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package de.epiceric.shopchest.nms;
|
package de.epiceric.shopchest.nms.network.entity;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represent an Item entity that only exists clientside
|
* Represent an Item entity that only exists clientside
|
@ -1,4 +1,4 @@
|
|||||||
package de.epiceric.shopchest.nms.metadata;
|
package de.epiceric.shopchest.nms.network.entity.metadata;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.NMSComponent;
|
import de.epiceric.shopchest.nms.NMSComponent;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
@ -1,4 +1,4 @@
|
|||||||
package de.epiceric.shopchest.nms.metadata;
|
package de.epiceric.shopchest.nms.network.entity.metadata;
|
||||||
|
|
||||||
public interface MetadataProperty<T> {
|
public interface MetadataProperty<T> {
|
||||||
|
|
@ -0,0 +1,5 @@
|
|||||||
|
package de.epiceric.shopchest.nms.network.entity.metadata;
|
||||||
|
|
||||||
|
public interface MetadataValue {
|
||||||
|
|
||||||
|
}
|
@ -10,7 +10,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<artifactId>shopchest-nms</artifactId>
|
<artifactId>shopchest-nms</artifactId>
|
||||||
<version>1.1.0</version>
|
<version>1.1.1-SNAPSHOT</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>shopchest-nms</artifactId>
|
<artifactId>shopchest-nms</artifactId>
|
||||||
<groupId>de.epiceric</groupId>
|
<groupId>de.epiceric</groupId>
|
||||||
<version>1.1.0</version>
|
<version>1.1.1-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package de.epiceric.shopchest.nms.reflection;
|
package de.epiceric.shopchest.nms.reflection;
|
||||||
|
|
||||||
import de.epiceric.shopchest.debug.DebugLogger;
|
import de.epiceric.shopchest.debug.DebugLogger;
|
||||||
import de.epiceric.shopchest.nms.FakeArmorStand;
|
import de.epiceric.shopchest.nms.network.entity.FakeArmorStand;
|
||||||
|
|
||||||
public class FakeArmorStandImpl extends FakeEntityImpl implements FakeArmorStand {
|
public class FakeArmorStandImpl extends FakeEntityImpl implements FakeArmorStand {
|
||||||
|
|
||||||
|
@ -1,13 +1,11 @@
|
|||||||
package de.epiceric.shopchest.nms.reflection;
|
package de.epiceric.shopchest.nms.reflection;
|
||||||
|
|
||||||
import de.epiceric.shopchest.debug.DebugLogger;
|
import de.epiceric.shopchest.debug.DebugLogger;
|
||||||
import de.epiceric.shopchest.nms.FakeEntity;
|
import de.epiceric.shopchest.nms.network.entity.FakeEntity;
|
||||||
import de.epiceric.shopchest.nms.PacketQueue;
|
import de.epiceric.shopchest.nms.network.PacketQueue;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataValue;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataValue;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.entity.Player;
|
|
||||||
import org.bukkit.util.Vector;
|
import org.bukkit.util.Vector;
|
||||||
import org.inventivetalent.reflection.resolver.minecraft.NMSClassResolver;
|
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
|
@ -1,14 +1,7 @@
|
|||||||
package de.epiceric.shopchest.nms.reflection;
|
package de.epiceric.shopchest.nms.reflection;
|
||||||
|
|
||||||
import de.epiceric.shopchest.debug.DebugLogger;
|
import de.epiceric.shopchest.debug.DebugLogger;
|
||||||
import de.epiceric.shopchest.nms.FakeItem;
|
import de.epiceric.shopchest.nms.network.entity.FakeItem;
|
||||||
import org.bukkit.Location;
|
|
||||||
import org.bukkit.entity.EntityType;
|
|
||||||
import org.bukkit.entity.Player;
|
|
||||||
import org.bukkit.inventory.ItemStack;
|
|
||||||
import org.inventivetalent.reflection.resolver.minecraft.OBCClassResolver;
|
|
||||||
|
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
public class FakeItemImpl extends FakeEntityImpl implements FakeItem {
|
public class FakeItemImpl extends FakeEntityImpl implements FakeItem {
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package de.epiceric.shopchest.nms.reflection;
|
package de.epiceric.shopchest.nms.reflection;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.PacketQueue;
|
import de.epiceric.shopchest.nms.network.PacketQueue;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
import java.util.LinkedList;
|
import java.util.LinkedList;
|
||||||
|
@ -2,7 +2,10 @@ package de.epiceric.shopchest.nms.reflection;
|
|||||||
|
|
||||||
import de.epiceric.shopchest.debug.DebugLogger;
|
import de.epiceric.shopchest.debug.DebugLogger;
|
||||||
import de.epiceric.shopchest.nms.*;
|
import de.epiceric.shopchest.nms.*;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperties;
|
import de.epiceric.shopchest.nms.network.entity.FakeArmorStand;
|
||||||
|
import de.epiceric.shopchest.nms.network.entity.FakeItem;
|
||||||
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperties;
|
||||||
|
import de.epiceric.shopchest.nms.network.PacketQueue;
|
||||||
|
|
||||||
public class PlatformImpl implements Platform {
|
public class PlatformImpl implements Platform {
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>shopchest-nms</artifactId>
|
<artifactId>shopchest-nms</artifactId>
|
||||||
<groupId>de.epiceric</groupId>
|
<groupId>de.epiceric</groupId>
|
||||||
<version>1.1.0</version>
|
<version>1.1.1-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
@ -1,8 +1,14 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_17_R1;
|
package de.epiceric.shopchest.nms.v1_17_R1;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.*;
|
import de.epiceric.shopchest.nms.*;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperties;
|
import de.epiceric.shopchest.nms.network.entity.FakeArmorStand;
|
||||||
import de.epiceric.shopchest.nms.v1_17_R1.metadata.MetadataPropertiesImpl;
|
import de.epiceric.shopchest.nms.network.entity.FakeItem;
|
||||||
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperties;
|
||||||
|
import de.epiceric.shopchest.nms.network.PacketQueue;
|
||||||
|
import de.epiceric.shopchest.nms.v1_17_R1.network.entity.FakeArmorStandImpl;
|
||||||
|
import de.epiceric.shopchest.nms.v1_17_R1.network.entity.FakeItemImpl;
|
||||||
|
import de.epiceric.shopchest.nms.v1_17_R1.network.entity.metadata.MetadataPropertiesImpl;
|
||||||
|
import de.epiceric.shopchest.nms.v1_17_R1.network.PacketQueueImpl;
|
||||||
|
|
||||||
public class PlatformImpl implements Platform {
|
public class PlatformImpl implements Platform {
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_17_R1;
|
package de.epiceric.shopchest.nms.v1_17_R1.network;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.PacketQueue;
|
import de.epiceric.shopchest.nms.network.PacketQueue;
|
||||||
import net.minecraft.network.protocol.Packet;
|
import net.minecraft.network.protocol.Packet;
|
||||||
import net.minecraft.server.network.ServerPlayerConnection;
|
import net.minecraft.server.network.ServerPlayerConnection;
|
||||||
import org.bukkit.craftbukkit.v1_17_R1.entity.CraftPlayer;
|
import org.bukkit.craftbukkit.v1_17_R1.entity.CraftPlayer;
|
@ -1,6 +1,6 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_18_R1;
|
package de.epiceric.shopchest.nms.v1_17_R1.network.entity;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.FakeArmorStand;
|
import de.epiceric.shopchest.nms.network.entity.FakeArmorStand;
|
||||||
import net.minecraft.world.entity.EntityType;
|
import net.minecraft.world.entity.EntityType;
|
||||||
|
|
||||||
public class FakeArmorStandImpl extends FakeEntityImpl implements FakeArmorStand {
|
public class FakeArmorStandImpl extends FakeEntityImpl implements FakeArmorStand {
|
@ -1,10 +1,11 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_17_R1;
|
package de.epiceric.shopchest.nms.v1_17_R1.network.entity;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.FakeEntity;
|
import de.epiceric.shopchest.nms.network.entity.FakeEntity;
|
||||||
import de.epiceric.shopchest.nms.PacketQueue;
|
import de.epiceric.shopchest.nms.network.PacketQueue;
|
||||||
import de.epiceric.shopchest.nms.ReflectionUtils;
|
import de.epiceric.shopchest.nms.ReflectionUtils;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataValue;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataValue;
|
||||||
import de.epiceric.shopchest.nms.v1_17_R1.metadata.ExplicitMetadataValue;
|
import de.epiceric.shopchest.nms.v1_17_R1.network.entity.metadata.ExplicitMetadataValue;
|
||||||
|
import de.epiceric.shopchest.nms.v1_17_R1.network.PacketQueueImpl;
|
||||||
import io.netty.buffer.Unpooled;
|
import io.netty.buffer.Unpooled;
|
||||||
import net.minecraft.network.FriendlyByteBuf;
|
import net.minecraft.network.FriendlyByteBuf;
|
||||||
import net.minecraft.network.protocol.game.*;
|
import net.minecraft.network.protocol.game.*;
|
@ -1,6 +1,6 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_17_R1;
|
package de.epiceric.shopchest.nms.v1_17_R1.network.entity;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.FakeItem;
|
import de.epiceric.shopchest.nms.network.entity.FakeItem;
|
||||||
import net.minecraft.world.entity.EntityType;
|
import net.minecraft.world.entity.EntityType;
|
||||||
|
|
||||||
public class FakeItemImpl extends FakeEntityImpl implements FakeItem {
|
public class FakeItemImpl extends FakeEntityImpl implements FakeItem {
|
@ -1,7 +1,7 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_18_R1.metadata;
|
package de.epiceric.shopchest.nms.v1_17_R1.network.entity.metadata;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperties;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperties;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperty;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperty;
|
||||||
import net.minecraft.network.syncher.SynchedEntityData;
|
import net.minecraft.network.syncher.SynchedEntityData;
|
||||||
import net.minecraft.world.entity.decoration.ArmorStand;
|
import net.minecraft.world.entity.decoration.ArmorStand;
|
||||||
|
|
@ -1,9 +1,9 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_17_R1.metadata;
|
package de.epiceric.shopchest.nms.v1_17_R1.network.entity.metadata;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.NMSComponent;
|
import de.epiceric.shopchest.nms.NMSComponent;
|
||||||
import de.epiceric.shopchest.nms.ReflectionUtils;
|
import de.epiceric.shopchest.nms.ReflectionUtils;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperties;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperties;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperty;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperty;
|
||||||
import net.minecraft.network.chat.Component;
|
import net.minecraft.network.chat.Component;
|
||||||
import net.minecraft.network.syncher.EntityDataAccessor;
|
import net.minecraft.network.syncher.EntityDataAccessor;
|
||||||
import net.minecraft.network.syncher.SynchedEntityData;
|
import net.minecraft.network.syncher.SynchedEntityData;
|
@ -1,6 +1,6 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_18_R1.metadata;
|
package de.epiceric.shopchest.nms.v1_17_R1.network.entity.metadata;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataValue;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataValue;
|
||||||
import net.minecraft.network.syncher.SynchedEntityData;
|
import net.minecraft.network.syncher.SynchedEntityData;
|
||||||
|
|
||||||
public interface ExplicitMetadataValue extends MetadataValue {
|
public interface ExplicitMetadataValue extends MetadataValue {
|
@ -1,8 +1,8 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_17_R1.metadata;
|
package de.epiceric.shopchest.nms.v1_17_R1.network.entity.metadata;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.ReflectionUtils;
|
import de.epiceric.shopchest.nms.ReflectionUtils;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperties;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperties;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperty;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperty;
|
||||||
import net.minecraft.network.syncher.EntityDataAccessor;
|
import net.minecraft.network.syncher.EntityDataAccessor;
|
||||||
import net.minecraft.network.syncher.SynchedEntityData;
|
import net.minecraft.network.syncher.SynchedEntityData;
|
||||||
import net.minecraft.world.entity.item.ItemEntity;
|
import net.minecraft.world.entity.item.ItemEntity;
|
@ -1,6 +1,6 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_17_R2.metadata;
|
package de.epiceric.shopchest.nms.v1_17_R1.network.entity.metadata;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperties;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperties;
|
||||||
|
|
||||||
public class MetadataPropertiesImpl implements MetadataProperties {
|
public class MetadataPropertiesImpl implements MetadataProperties {
|
||||||
|
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>shopchest-nms</artifactId>
|
<artifactId>shopchest-nms</artifactId>
|
||||||
<groupId>de.epiceric</groupId>
|
<groupId>de.epiceric</groupId>
|
||||||
<version>1.1.0</version>
|
<version>1.1.1-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
@ -1,8 +1,14 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_17_R2;
|
package de.epiceric.shopchest.nms.v1_17_R2;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.*;
|
import de.epiceric.shopchest.nms.*;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperties;
|
import de.epiceric.shopchest.nms.network.entity.FakeArmorStand;
|
||||||
import de.epiceric.shopchest.nms.v1_17_R2.metadata.MetadataPropertiesImpl;
|
import de.epiceric.shopchest.nms.network.entity.FakeItem;
|
||||||
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperties;
|
||||||
|
import de.epiceric.shopchest.nms.network.PacketQueue;
|
||||||
|
import de.epiceric.shopchest.nms.v1_17_R2.network.entity.FakeArmorStandImpl;
|
||||||
|
import de.epiceric.shopchest.nms.v1_17_R2.network.entity.FakeItemImpl;
|
||||||
|
import de.epiceric.shopchest.nms.v1_17_R2.network.entity.metadata.MetadataPropertiesImpl;
|
||||||
|
import de.epiceric.shopchest.nms.v1_17_R2.network.PacketQueueImpl;
|
||||||
|
|
||||||
public class PlatformImpl implements Platform {
|
public class PlatformImpl implements Platform {
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_17_R2;
|
package de.epiceric.shopchest.nms.v1_17_R2.network;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.PacketQueue;
|
import de.epiceric.shopchest.nms.network.PacketQueue;
|
||||||
import net.minecraft.network.protocol.Packet;
|
import net.minecraft.network.protocol.Packet;
|
||||||
import net.minecraft.server.network.ServerPlayerConnection;
|
import net.minecraft.server.network.ServerPlayerConnection;
|
||||||
import org.bukkit.craftbukkit.v1_17_R1.entity.CraftPlayer;
|
import org.bukkit.craftbukkit.v1_17_R1.entity.CraftPlayer;
|
@ -1,6 +1,6 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_17_R2;
|
package de.epiceric.shopchest.nms.v1_17_R2.network.entity;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.FakeArmorStand;
|
import de.epiceric.shopchest.nms.network.entity.FakeArmorStand;
|
||||||
import net.minecraft.world.entity.EntityType;
|
import net.minecraft.world.entity.EntityType;
|
||||||
|
|
||||||
public class FakeArmorStandImpl extends FakeEntityImpl implements FakeArmorStand {
|
public class FakeArmorStandImpl extends FakeEntityImpl implements FakeArmorStand {
|
@ -1,10 +1,11 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_18_R1;
|
package de.epiceric.shopchest.nms.v1_17_R2.network.entity;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.FakeEntity;
|
import de.epiceric.shopchest.nms.network.entity.FakeEntity;
|
||||||
import de.epiceric.shopchest.nms.PacketQueue;
|
import de.epiceric.shopchest.nms.network.PacketQueue;
|
||||||
import de.epiceric.shopchest.nms.ReflectionUtils;
|
import de.epiceric.shopchest.nms.ReflectionUtils;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataValue;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataValue;
|
||||||
import de.epiceric.shopchest.nms.v1_18_R1.metadata.ExplicitMetadataValue;
|
import de.epiceric.shopchest.nms.v1_17_R2.network.entity.metadata.ExplicitMetadataValue;
|
||||||
|
import de.epiceric.shopchest.nms.v1_17_R2.network.PacketQueueImpl;
|
||||||
import io.netty.buffer.Unpooled;
|
import io.netty.buffer.Unpooled;
|
||||||
import net.minecraft.network.FriendlyByteBuf;
|
import net.minecraft.network.FriendlyByteBuf;
|
||||||
import net.minecraft.network.protocol.game.*;
|
import net.minecraft.network.protocol.game.*;
|
@ -1,6 +1,6 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_18_R1;
|
package de.epiceric.shopchest.nms.v1_17_R2.network.entity;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.FakeItem;
|
import de.epiceric.shopchest.nms.network.entity.FakeItem;
|
||||||
import net.minecraft.world.entity.EntityType;
|
import net.minecraft.world.entity.EntityType;
|
||||||
|
|
||||||
public class FakeItemImpl extends FakeEntityImpl implements FakeItem {
|
public class FakeItemImpl extends FakeEntityImpl implements FakeItem {
|
@ -1,7 +1,7 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_18_R2.metadata;
|
package de.epiceric.shopchest.nms.v1_17_R2.network.entity.metadata;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperties;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperties;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperty;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperty;
|
||||||
import net.minecraft.network.syncher.SynchedEntityData;
|
import net.minecraft.network.syncher.SynchedEntityData;
|
||||||
import net.minecraft.world.entity.decoration.ArmorStand;
|
import net.minecraft.world.entity.decoration.ArmorStand;
|
||||||
|
|
@ -1,9 +1,9 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_17_R2.metadata;
|
package de.epiceric.shopchest.nms.v1_17_R2.network.entity.metadata;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.NMSComponent;
|
import de.epiceric.shopchest.nms.NMSComponent;
|
||||||
import de.epiceric.shopchest.nms.ReflectionUtils;
|
import de.epiceric.shopchest.nms.ReflectionUtils;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperties;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperties;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperty;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperty;
|
||||||
import net.minecraft.network.chat.Component;
|
import net.minecraft.network.chat.Component;
|
||||||
import net.minecraft.network.syncher.EntityDataAccessor;
|
import net.minecraft.network.syncher.EntityDataAccessor;
|
||||||
import net.minecraft.network.syncher.SynchedEntityData;
|
import net.minecraft.network.syncher.SynchedEntityData;
|
@ -1,6 +1,6 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_18_R2.metadata;
|
package de.epiceric.shopchest.nms.v1_17_R2.network.entity.metadata;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataValue;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataValue;
|
||||||
import net.minecraft.network.syncher.SynchedEntityData;
|
import net.minecraft.network.syncher.SynchedEntityData;
|
||||||
|
|
||||||
public interface ExplicitMetadataValue extends MetadataValue {
|
public interface ExplicitMetadataValue extends MetadataValue {
|
@ -1,8 +1,8 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_17_R2.metadata;
|
package de.epiceric.shopchest.nms.v1_17_R2.network.entity.metadata;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.ReflectionUtils;
|
import de.epiceric.shopchest.nms.ReflectionUtils;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperties;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperties;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperty;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperty;
|
||||||
import net.minecraft.network.syncher.EntityDataAccessor;
|
import net.minecraft.network.syncher.EntityDataAccessor;
|
||||||
import net.minecraft.network.syncher.SynchedEntityData;
|
import net.minecraft.network.syncher.SynchedEntityData;
|
||||||
import net.minecraft.world.entity.item.ItemEntity;
|
import net.minecraft.world.entity.item.ItemEntity;
|
@ -1,6 +1,6 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_18_R1.metadata;
|
package de.epiceric.shopchest.nms.v1_17_R2.network.entity.metadata;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperties;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperties;
|
||||||
|
|
||||||
public class MetadataPropertiesImpl implements MetadataProperties {
|
public class MetadataPropertiesImpl implements MetadataProperties {
|
||||||
|
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>shopchest-nms</artifactId>
|
<artifactId>shopchest-nms</artifactId>
|
||||||
<groupId>de.epiceric</groupId>
|
<groupId>de.epiceric</groupId>
|
||||||
<version>1.1.0</version>
|
<version>1.1.1-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
@ -1,8 +1,14 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_18_R1;
|
package de.epiceric.shopchest.nms.v1_18_R1;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.*;
|
import de.epiceric.shopchest.nms.*;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperties;
|
import de.epiceric.shopchest.nms.network.entity.FakeArmorStand;
|
||||||
import de.epiceric.shopchest.nms.v1_18_R1.metadata.MetadataPropertiesImpl;
|
import de.epiceric.shopchest.nms.network.entity.FakeItem;
|
||||||
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperties;
|
||||||
|
import de.epiceric.shopchest.nms.network.PacketQueue;
|
||||||
|
import de.epiceric.shopchest.nms.v1_18_R1.network.entity.FakeArmorStandImpl;
|
||||||
|
import de.epiceric.shopchest.nms.v1_18_R1.network.entity.FakeItemImpl;
|
||||||
|
import de.epiceric.shopchest.nms.v1_18_R1.network.entity.metadata.MetadataPropertiesImpl;
|
||||||
|
import de.epiceric.shopchest.nms.v1_18_R1.network.PacketQueueImpl;
|
||||||
|
|
||||||
public class PlatformImpl implements Platform {
|
public class PlatformImpl implements Platform {
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_18_R1;
|
package de.epiceric.shopchest.nms.v1_18_R1.network;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.PacketQueue;
|
import de.epiceric.shopchest.nms.network.PacketQueue;
|
||||||
import net.minecraft.network.protocol.Packet;
|
import net.minecraft.network.protocol.Packet;
|
||||||
import net.minecraft.server.network.ServerPlayerConnection;
|
import net.minecraft.server.network.ServerPlayerConnection;
|
||||||
import org.bukkit.craftbukkit.v1_18_R1.entity.CraftPlayer;
|
import org.bukkit.craftbukkit.v1_18_R1.entity.CraftPlayer;
|
@ -1,6 +1,6 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_18_R2;
|
package de.epiceric.shopchest.nms.v1_18_R1.network.entity;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.FakeArmorStand;
|
import de.epiceric.shopchest.nms.network.entity.FakeArmorStand;
|
||||||
import net.minecraft.world.entity.EntityType;
|
import net.minecraft.world.entity.EntityType;
|
||||||
|
|
||||||
public class FakeArmorStandImpl extends FakeEntityImpl implements FakeArmorStand {
|
public class FakeArmorStandImpl extends FakeEntityImpl implements FakeArmorStand {
|
@ -1,10 +1,11 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_17_R2;
|
package de.epiceric.shopchest.nms.v1_18_R1.network.entity;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.FakeEntity;
|
import de.epiceric.shopchest.nms.network.entity.FakeEntity;
|
||||||
import de.epiceric.shopchest.nms.PacketQueue;
|
import de.epiceric.shopchest.nms.network.PacketQueue;
|
||||||
import de.epiceric.shopchest.nms.ReflectionUtils;
|
import de.epiceric.shopchest.nms.ReflectionUtils;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataValue;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataValue;
|
||||||
import de.epiceric.shopchest.nms.v1_17_R2.metadata.ExplicitMetadataValue;
|
import de.epiceric.shopchest.nms.v1_18_R1.network.entity.metadata.ExplicitMetadataValue;
|
||||||
|
import de.epiceric.shopchest.nms.v1_18_R1.network.PacketQueueImpl;
|
||||||
import io.netty.buffer.Unpooled;
|
import io.netty.buffer.Unpooled;
|
||||||
import net.minecraft.network.FriendlyByteBuf;
|
import net.minecraft.network.FriendlyByteBuf;
|
||||||
import net.minecraft.network.protocol.game.*;
|
import net.minecraft.network.protocol.game.*;
|
@ -1,6 +1,6 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_17_R2;
|
package de.epiceric.shopchest.nms.v1_18_R1.network.entity;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.FakeItem;
|
import de.epiceric.shopchest.nms.network.entity.FakeItem;
|
||||||
import net.minecraft.world.entity.EntityType;
|
import net.minecraft.world.entity.EntityType;
|
||||||
|
|
||||||
public class FakeItemImpl extends FakeEntityImpl implements FakeItem {
|
public class FakeItemImpl extends FakeEntityImpl implements FakeItem {
|
@ -1,7 +1,7 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_17_R1.metadata;
|
package de.epiceric.shopchest.nms.v1_18_R1.network.entity.metadata;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperties;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperties;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperty;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperty;
|
||||||
import net.minecraft.network.syncher.SynchedEntityData;
|
import net.minecraft.network.syncher.SynchedEntityData;
|
||||||
import net.minecraft.world.entity.decoration.ArmorStand;
|
import net.minecraft.world.entity.decoration.ArmorStand;
|
||||||
|
|
@ -1,9 +1,9 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_18_R1.metadata;
|
package de.epiceric.shopchest.nms.v1_18_R1.network.entity.metadata;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.NMSComponent;
|
import de.epiceric.shopchest.nms.NMSComponent;
|
||||||
import de.epiceric.shopchest.nms.ReflectionUtils;
|
import de.epiceric.shopchest.nms.ReflectionUtils;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperties;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperties;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperty;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperty;
|
||||||
import net.minecraft.network.chat.Component;
|
import net.minecraft.network.chat.Component;
|
||||||
import net.minecraft.network.syncher.EntityDataAccessor;
|
import net.minecraft.network.syncher.EntityDataAccessor;
|
||||||
import net.minecraft.network.syncher.SynchedEntityData;
|
import net.minecraft.network.syncher.SynchedEntityData;
|
@ -1,6 +1,6 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_17_R1.metadata;
|
package de.epiceric.shopchest.nms.v1_18_R1.network.entity.metadata;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataValue;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataValue;
|
||||||
import net.minecraft.network.syncher.SynchedEntityData;
|
import net.minecraft.network.syncher.SynchedEntityData;
|
||||||
|
|
||||||
public interface ExplicitMetadataValue extends MetadataValue {
|
public interface ExplicitMetadataValue extends MetadataValue {
|
@ -1,8 +1,8 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_18_R1.metadata;
|
package de.epiceric.shopchest.nms.v1_18_R1.network.entity.metadata;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.ReflectionUtils;
|
import de.epiceric.shopchest.nms.ReflectionUtils;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperties;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperties;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperty;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperty;
|
||||||
import net.minecraft.network.syncher.EntityDataAccessor;
|
import net.minecraft.network.syncher.EntityDataAccessor;
|
||||||
import net.minecraft.network.syncher.SynchedEntityData;
|
import net.minecraft.network.syncher.SynchedEntityData;
|
||||||
import net.minecraft.world.entity.item.ItemEntity;
|
import net.minecraft.world.entity.item.ItemEntity;
|
@ -1,6 +1,6 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_17_R1.metadata;
|
package de.epiceric.shopchest.nms.v1_18_R1.network.entity.metadata;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperties;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperties;
|
||||||
|
|
||||||
public class MetadataPropertiesImpl implements MetadataProperties {
|
public class MetadataPropertiesImpl implements MetadataProperties {
|
||||||
|
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>shopchest-nms</artifactId>
|
<artifactId>shopchest-nms</artifactId>
|
||||||
<groupId>de.epiceric</groupId>
|
<groupId>de.epiceric</groupId>
|
||||||
<version>1.1.0</version>
|
<version>1.1.1-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
@ -1,8 +1,14 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_18_R2;
|
package de.epiceric.shopchest.nms.v1_18_R2;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.*;
|
import de.epiceric.shopchest.nms.*;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperties;
|
import de.epiceric.shopchest.nms.network.entity.FakeArmorStand;
|
||||||
import de.epiceric.shopchest.nms.v1_18_R2.metadata.MetadataPropertiesImpl;
|
import de.epiceric.shopchest.nms.network.entity.FakeItem;
|
||||||
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperties;
|
||||||
|
import de.epiceric.shopchest.nms.network.PacketQueue;
|
||||||
|
import de.epiceric.shopchest.nms.v1_18_R2.network.entity.FakeArmorStandImpl;
|
||||||
|
import de.epiceric.shopchest.nms.v1_18_R2.network.entity.FakeItemImpl;
|
||||||
|
import de.epiceric.shopchest.nms.v1_18_R2.network.entity.metadata.MetadataPropertiesImpl;
|
||||||
|
import de.epiceric.shopchest.nms.v1_18_R2.network.PacketQueueImpl;
|
||||||
|
|
||||||
public class PlatformImpl implements Platform {
|
public class PlatformImpl implements Platform {
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_18_R2;
|
package de.epiceric.shopchest.nms.v1_18_R2.network;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.PacketQueue;
|
import de.epiceric.shopchest.nms.network.PacketQueue;
|
||||||
import net.minecraft.network.protocol.Packet;
|
import net.minecraft.network.protocol.Packet;
|
||||||
import net.minecraft.server.network.ServerPlayerConnection;
|
import net.minecraft.server.network.ServerPlayerConnection;
|
||||||
import org.bukkit.craftbukkit.v1_18_R2.entity.CraftPlayer;
|
import org.bukkit.craftbukkit.v1_18_R2.entity.CraftPlayer;
|
@ -1,6 +1,6 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_17_R1;
|
package de.epiceric.shopchest.nms.v1_18_R2.network.entity;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.FakeArmorStand;
|
import de.epiceric.shopchest.nms.network.entity.FakeArmorStand;
|
||||||
import net.minecraft.world.entity.EntityType;
|
import net.minecraft.world.entity.EntityType;
|
||||||
|
|
||||||
public class FakeArmorStandImpl extends FakeEntityImpl implements FakeArmorStand {
|
public class FakeArmorStandImpl extends FakeEntityImpl implements FakeArmorStand {
|
@ -1,10 +1,11 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_18_R2;
|
package de.epiceric.shopchest.nms.v1_18_R2.network.entity;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.FakeEntity;
|
import de.epiceric.shopchest.nms.network.entity.FakeEntity;
|
||||||
import de.epiceric.shopchest.nms.PacketQueue;
|
import de.epiceric.shopchest.nms.network.PacketQueue;
|
||||||
import de.epiceric.shopchest.nms.ReflectionUtils;
|
import de.epiceric.shopchest.nms.ReflectionUtils;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataValue;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataValue;
|
||||||
import de.epiceric.shopchest.nms.v1_18_R2.metadata.ExplicitMetadataValue;
|
import de.epiceric.shopchest.nms.v1_18_R2.network.entity.metadata.ExplicitMetadataValue;
|
||||||
|
import de.epiceric.shopchest.nms.v1_18_R2.network.PacketQueueImpl;
|
||||||
import io.netty.buffer.Unpooled;
|
import io.netty.buffer.Unpooled;
|
||||||
import net.minecraft.network.FriendlyByteBuf;
|
import net.minecraft.network.FriendlyByteBuf;
|
||||||
import net.minecraft.network.protocol.game.*;
|
import net.minecraft.network.protocol.game.*;
|
@ -1,6 +1,6 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_18_R2;
|
package de.epiceric.shopchest.nms.v1_18_R2.network.entity;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.FakeItem;
|
import de.epiceric.shopchest.nms.network.entity.FakeItem;
|
||||||
import net.minecraft.world.entity.EntityType;
|
import net.minecraft.world.entity.EntityType;
|
||||||
|
|
||||||
public class FakeItemImpl extends FakeEntityImpl implements FakeItem {
|
public class FakeItemImpl extends FakeEntityImpl implements FakeItem {
|
@ -1,7 +1,7 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_17_R2.metadata;
|
package de.epiceric.shopchest.nms.v1_18_R2.network.entity.metadata;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperties;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperties;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperty;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperty;
|
||||||
import net.minecraft.network.syncher.SynchedEntityData;
|
import net.minecraft.network.syncher.SynchedEntityData;
|
||||||
import net.minecraft.world.entity.decoration.ArmorStand;
|
import net.minecraft.world.entity.decoration.ArmorStand;
|
||||||
|
|
@ -1,9 +1,9 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_18_R2.metadata;
|
package de.epiceric.shopchest.nms.v1_18_R2.network.entity.metadata;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.NMSComponent;
|
import de.epiceric.shopchest.nms.NMSComponent;
|
||||||
import de.epiceric.shopchest.nms.ReflectionUtils;
|
import de.epiceric.shopchest.nms.ReflectionUtils;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperties;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperties;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperty;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperty;
|
||||||
import net.minecraft.network.chat.Component;
|
import net.minecraft.network.chat.Component;
|
||||||
import net.minecraft.network.syncher.EntityDataAccessor;
|
import net.minecraft.network.syncher.EntityDataAccessor;
|
||||||
import net.minecraft.network.syncher.SynchedEntityData;
|
import net.minecraft.network.syncher.SynchedEntityData;
|
@ -1,6 +1,6 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_17_R2.metadata;
|
package de.epiceric.shopchest.nms.v1_18_R2.network.entity.metadata;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataValue;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataValue;
|
||||||
import net.minecraft.network.syncher.SynchedEntityData;
|
import net.minecraft.network.syncher.SynchedEntityData;
|
||||||
|
|
||||||
public interface ExplicitMetadataValue extends MetadataValue {
|
public interface ExplicitMetadataValue extends MetadataValue {
|
@ -1,8 +1,8 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_18_R2.metadata;
|
package de.epiceric.shopchest.nms.v1_18_R2.network.entity.metadata;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.ReflectionUtils;
|
import de.epiceric.shopchest.nms.ReflectionUtils;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperties;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperties;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperty;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperty;
|
||||||
import net.minecraft.network.syncher.EntityDataAccessor;
|
import net.minecraft.network.syncher.EntityDataAccessor;
|
||||||
import net.minecraft.network.syncher.SynchedEntityData;
|
import net.minecraft.network.syncher.SynchedEntityData;
|
||||||
import net.minecraft.world.entity.item.ItemEntity;
|
import net.minecraft.world.entity.item.ItemEntity;
|
@ -1,6 +1,6 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_18_R2.metadata;
|
package de.epiceric.shopchest.nms.v1_18_R2.network.entity.metadata;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperties;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperties;
|
||||||
|
|
||||||
public class MetadataPropertiesImpl implements MetadataProperties {
|
public class MetadataPropertiesImpl implements MetadataProperties {
|
||||||
|
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>shopchest-nms</artifactId>
|
<artifactId>shopchest-nms</artifactId>
|
||||||
<groupId>de.epiceric</groupId>
|
<groupId>de.epiceric</groupId>
|
||||||
<version>1.1.0</version>
|
<version>1.1.1-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_19_R1;
|
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.FakeArmorStand;
|
|
||||||
import net.minecraft.world.entity.EntityType;
|
|
||||||
|
|
||||||
public class FakeArmorStandImpl extends FakeEntityImpl implements FakeArmorStand {
|
|
||||||
|
|
||||||
public FakeArmorStandImpl() {
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
protected EntityType<?> getEntityType() {
|
|
||||||
return EntityType.ARMOR_STAND;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,16 +0,0 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_19_R1;
|
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.FakeItem;
|
|
||||||
import net.minecraft.world.entity.EntityType;
|
|
||||||
|
|
||||||
public class FakeItemImpl extends FakeEntityImpl implements FakeItem {
|
|
||||||
|
|
||||||
public FakeItemImpl() {
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
protected EntityType<?> getEntityType() {
|
|
||||||
return EntityType.ITEM;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,8 +1,14 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_19_R1;
|
package de.epiceric.shopchest.nms.v1_19_R1;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.*;
|
import de.epiceric.shopchest.nms.*;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperties;
|
import de.epiceric.shopchest.nms.network.entity.FakeArmorStand;
|
||||||
import de.epiceric.shopchest.nms.v1_19_R1.metadata.MetadataPropertiesImpl;
|
import de.epiceric.shopchest.nms.network.entity.FakeItem;
|
||||||
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperties;
|
||||||
|
import de.epiceric.shopchest.nms.network.PacketQueue;
|
||||||
|
import de.epiceric.shopchest.nms.v1_19_R1.network.entity.FakeArmorStandImpl;
|
||||||
|
import de.epiceric.shopchest.nms.v1_19_R1.network.entity.FakeItemImpl;
|
||||||
|
import de.epiceric.shopchest.nms.v1_19_R1.network.entity.metadata.MetadataPropertiesImpl;
|
||||||
|
import de.epiceric.shopchest.nms.v1_19_R1.network.PacketQueueImpl;
|
||||||
|
|
||||||
public class PlatformImpl implements Platform {
|
public class PlatformImpl implements Platform {
|
||||||
|
|
||||||
|
@ -1,17 +0,0 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_19_R1.metadata;
|
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperties;
|
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperty;
|
|
||||||
import net.minecraft.network.syncher.SynchedEntityData;
|
|
||||||
import net.minecraft.world.entity.decoration.ArmorStand;
|
|
||||||
|
|
||||||
public class ArmorStandMetadataProperties implements MetadataProperties.ArmorStand {
|
|
||||||
|
|
||||||
private final static byte MARKER_FLAG = 0b10000;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public MetadataProperty<Boolean> marker() {
|
|
||||||
return value -> (ExplicitMetadataValue) () -> new SynchedEntityData.DataItem<>(ArmorStand.DATA_CLIENT_FLAGS, value ? MARKER_FLAG : 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -1,10 +0,0 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_19_R1.metadata;
|
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataValue;
|
|
||||||
import net.minecraft.network.syncher.SynchedEntityData;
|
|
||||||
|
|
||||||
public interface ExplicitMetadataValue extends MetadataValue {
|
|
||||||
|
|
||||||
SynchedEntityData.DataItem<?> toNMS();
|
|
||||||
|
|
||||||
}
|
|
@ -1,21 +0,0 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_19_R1.metadata;
|
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperties;
|
|
||||||
|
|
||||||
public class MetadataPropertiesImpl implements MetadataProperties {
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Entity entity() {
|
|
||||||
return new EntityMetadataProperties();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ArmorStand armorStand() {
|
|
||||||
return new ArmorStandMetadataProperties();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Item item() {
|
|
||||||
return new ItemMetadataProperties();
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,6 +1,6 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_19_R1;
|
package de.epiceric.shopchest.nms.v1_19_R1.network;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.PacketQueue;
|
import de.epiceric.shopchest.nms.network.PacketQueue;
|
||||||
import net.minecraft.network.protocol.Packet;
|
import net.minecraft.network.protocol.Packet;
|
||||||
import net.minecraft.server.network.ServerPlayerConnection;
|
import net.minecraft.server.network.ServerPlayerConnection;
|
||||||
import org.bukkit.craftbukkit.v1_19_R1.entity.CraftPlayer;
|
import org.bukkit.craftbukkit.v1_19_R1.entity.CraftPlayer;
|
@ -0,0 +1,16 @@
|
|||||||
|
package de.epiceric.shopchest.nms.v1_19_R1.network.entity;
|
||||||
|
|
||||||
|
import de.epiceric.shopchest.nms.network.entity.FakeArmorStand;
|
||||||
|
import net.minecraft.world.entity.EntityType;
|
||||||
|
|
||||||
|
public class FakeArmorStandImpl extends FakeEntityImpl implements FakeArmorStand {
|
||||||
|
|
||||||
|
public FakeArmorStandImpl() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected EntityType<?> getEntityType() {
|
||||||
|
return EntityType.ARMOR_STAND;
|
||||||
|
}
|
||||||
|
}
|
@ -1,10 +1,11 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_19_R1;
|
package de.epiceric.shopchest.nms.v1_19_R1.network.entity;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.FakeEntity;
|
import de.epiceric.shopchest.nms.network.entity.FakeEntity;
|
||||||
import de.epiceric.shopchest.nms.PacketQueue;
|
import de.epiceric.shopchest.nms.network.PacketQueue;
|
||||||
import de.epiceric.shopchest.nms.ReflectionUtils;
|
import de.epiceric.shopchest.nms.ReflectionUtils;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataValue;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataValue;
|
||||||
import de.epiceric.shopchest.nms.v1_19_R1.metadata.ExplicitMetadataValue;
|
import de.epiceric.shopchest.nms.v1_19_R1.network.entity.metadata.ExplicitMetadataValue;
|
||||||
|
import de.epiceric.shopchest.nms.v1_19_R1.network.PacketQueueImpl;
|
||||||
import io.netty.buffer.Unpooled;
|
import io.netty.buffer.Unpooled;
|
||||||
import net.minecraft.network.FriendlyByteBuf;
|
import net.minecraft.network.FriendlyByteBuf;
|
||||||
import net.minecraft.network.protocol.game.*;
|
import net.minecraft.network.protocol.game.*;
|
@ -0,0 +1,16 @@
|
|||||||
|
package de.epiceric.shopchest.nms.v1_19_R1.network.entity;
|
||||||
|
|
||||||
|
import de.epiceric.shopchest.nms.network.entity.FakeItem;
|
||||||
|
import net.minecraft.world.entity.EntityType;
|
||||||
|
|
||||||
|
public class FakeItemImpl extends FakeEntityImpl implements FakeItem {
|
||||||
|
|
||||||
|
public FakeItemImpl() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected EntityType<?> getEntityType() {
|
||||||
|
return EntityType.ITEM;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package de.epiceric.shopchest.nms.v1_19_R1.network.entity.metadata;
|
||||||
|
|
||||||
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperties;
|
||||||
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperty;
|
||||||
|
import net.minecraft.network.syncher.SynchedEntityData;
|
||||||
|
import net.minecraft.world.entity.decoration.ArmorStand;
|
||||||
|
|
||||||
|
public class ArmorStandMetadataProperties implements MetadataProperties.ArmorStand {
|
||||||
|
|
||||||
|
private final static byte MARKER_FLAG = 0b10000;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public MetadataProperty<Boolean> marker() {
|
||||||
|
return value -> (ExplicitMetadataValue) () -> new SynchedEntityData.DataItem<>(ArmorStand.DATA_CLIENT_FLAGS, value ? MARKER_FLAG : 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -1,9 +1,9 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_19_R1.metadata;
|
package de.epiceric.shopchest.nms.v1_19_R1.network.entity.metadata;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.NMSComponent;
|
import de.epiceric.shopchest.nms.NMSComponent;
|
||||||
import de.epiceric.shopchest.nms.ReflectionUtils;
|
import de.epiceric.shopchest.nms.ReflectionUtils;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperties;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperties;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperty;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperty;
|
||||||
import net.minecraft.network.chat.Component;
|
import net.minecraft.network.chat.Component;
|
||||||
import net.minecraft.network.syncher.EntityDataAccessor;
|
import net.minecraft.network.syncher.EntityDataAccessor;
|
||||||
import net.minecraft.network.syncher.SynchedEntityData;
|
import net.minecraft.network.syncher.SynchedEntityData;
|
@ -0,0 +1,10 @@
|
|||||||
|
package de.epiceric.shopchest.nms.v1_19_R1.network.entity.metadata;
|
||||||
|
|
||||||
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataValue;
|
||||||
|
import net.minecraft.network.syncher.SynchedEntityData;
|
||||||
|
|
||||||
|
public interface ExplicitMetadataValue extends MetadataValue {
|
||||||
|
|
||||||
|
SynchedEntityData.DataItem<?> toNMS();
|
||||||
|
|
||||||
|
}
|
@ -1,8 +1,8 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_19_R1.metadata;
|
package de.epiceric.shopchest.nms.v1_19_R1.network.entity.metadata;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.ReflectionUtils;
|
import de.epiceric.shopchest.nms.ReflectionUtils;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperties;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperties;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperty;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperty;
|
||||||
import net.minecraft.network.syncher.EntityDataAccessor;
|
import net.minecraft.network.syncher.EntityDataAccessor;
|
||||||
import net.minecraft.network.syncher.SynchedEntityData;
|
import net.minecraft.network.syncher.SynchedEntityData;
|
||||||
import net.minecraft.world.entity.item.ItemEntity;
|
import net.minecraft.world.entity.item.ItemEntity;
|
@ -0,0 +1,21 @@
|
|||||||
|
package de.epiceric.shopchest.nms.v1_19_R1.network.entity.metadata;
|
||||||
|
|
||||||
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperties;
|
||||||
|
|
||||||
|
public class MetadataPropertiesImpl implements MetadataProperties {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Entity entity() {
|
||||||
|
return new EntityMetadataProperties();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ArmorStand armorStand() {
|
||||||
|
return new ArmorStandMetadataProperties();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Item item() {
|
||||||
|
return new ItemMetadataProperties();
|
||||||
|
}
|
||||||
|
}
|
@ -5,7 +5,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<artifactId>shopchest-nms</artifactId>
|
<artifactId>shopchest-nms</artifactId>
|
||||||
<groupId>de.epiceric</groupId>
|
<groupId>de.epiceric</groupId>
|
||||||
<version>1.1.0</version>
|
<version>1.1.1-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_19_R2;
|
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.FakeArmorStand;
|
|
||||||
import net.minecraft.world.entity.EntityType;
|
|
||||||
|
|
||||||
public class FakeArmorStandImpl extends FakeEntityImpl implements FakeArmorStand {
|
|
||||||
|
|
||||||
public FakeArmorStandImpl() {
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
protected EntityType<?> getEntityType() {
|
|
||||||
return EntityType.ARMOR_STAND;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,16 +0,0 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_19_R2;
|
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.FakeItem;
|
|
||||||
import net.minecraft.world.entity.EntityType;
|
|
||||||
|
|
||||||
public class FakeItemImpl extends FakeEntityImpl implements FakeItem {
|
|
||||||
|
|
||||||
public FakeItemImpl() {
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
protected EntityType<?> getEntityType() {
|
|
||||||
return EntityType.ITEM;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,8 +1,14 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_19_R2;
|
package de.epiceric.shopchest.nms.v1_19_R2;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.*;
|
import de.epiceric.shopchest.nms.*;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperties;
|
import de.epiceric.shopchest.nms.network.entity.FakeArmorStand;
|
||||||
import de.epiceric.shopchest.nms.v1_19_R2.metadata.MetadataPropertiesImpl;
|
import de.epiceric.shopchest.nms.network.entity.FakeItem;
|
||||||
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperties;
|
||||||
|
import de.epiceric.shopchest.nms.network.PacketQueue;
|
||||||
|
import de.epiceric.shopchest.nms.v1_19_R2.network.entity.FakeArmorStandImpl;
|
||||||
|
import de.epiceric.shopchest.nms.v1_19_R2.network.entity.FakeItemImpl;
|
||||||
|
import de.epiceric.shopchest.nms.v1_19_R2.network.entity.metadata.MetadataPropertiesImpl;
|
||||||
|
import de.epiceric.shopchest.nms.v1_19_R2.network.PacketQueueImpl;
|
||||||
|
|
||||||
public class PlatformImpl implements Platform {
|
public class PlatformImpl implements Platform {
|
||||||
|
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_19_R2.metadata;
|
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperties;
|
|
||||||
|
|
||||||
public class MetadataPropertiesImpl implements MetadataProperties {
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Entity entity() {
|
|
||||||
return new EntityMetadataProperties();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public ArmorStand armorStand() {
|
|
||||||
return new ArmorStandMetadataProperties();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Item item() {
|
|
||||||
return new ItemMetadataProperties();
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,6 +1,6 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_19_R2;
|
package de.epiceric.shopchest.nms.v1_19_R2.network;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.PacketQueue;
|
import de.epiceric.shopchest.nms.network.PacketQueue;
|
||||||
import net.minecraft.network.protocol.Packet;
|
import net.minecraft.network.protocol.Packet;
|
||||||
import net.minecraft.server.network.ServerPlayerConnection;
|
import net.minecraft.server.network.ServerPlayerConnection;
|
||||||
import org.bukkit.craftbukkit.v1_19_R2.entity.CraftPlayer;
|
import org.bukkit.craftbukkit.v1_19_R2.entity.CraftPlayer;
|
@ -0,0 +1,16 @@
|
|||||||
|
package de.epiceric.shopchest.nms.v1_19_R2.network.entity;
|
||||||
|
|
||||||
|
import de.epiceric.shopchest.nms.network.entity.FakeArmorStand;
|
||||||
|
import net.minecraft.world.entity.EntityType;
|
||||||
|
|
||||||
|
public class FakeArmorStandImpl extends FakeEntityImpl implements FakeArmorStand {
|
||||||
|
|
||||||
|
public FakeArmorStandImpl() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected EntityType<?> getEntityType() {
|
||||||
|
return EntityType.ARMOR_STAND;
|
||||||
|
}
|
||||||
|
}
|
@ -1,10 +1,11 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_19_R2;
|
package de.epiceric.shopchest.nms.v1_19_R2.network.entity;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.FakeEntity;
|
import de.epiceric.shopchest.nms.network.entity.FakeEntity;
|
||||||
import de.epiceric.shopchest.nms.PacketQueue;
|
import de.epiceric.shopchest.nms.network.PacketQueue;
|
||||||
import de.epiceric.shopchest.nms.ReflectionUtils;
|
import de.epiceric.shopchest.nms.ReflectionUtils;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataValue;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataValue;
|
||||||
import de.epiceric.shopchest.nms.v1_19_R2.metadata.ExplicitMetadataValue;
|
import de.epiceric.shopchest.nms.v1_19_R2.network.entity.metadata.ExplicitMetadataValue;
|
||||||
|
import de.epiceric.shopchest.nms.v1_19_R2.network.PacketQueueImpl;
|
||||||
import io.netty.buffer.Unpooled;
|
import io.netty.buffer.Unpooled;
|
||||||
import net.minecraft.network.FriendlyByteBuf;
|
import net.minecraft.network.FriendlyByteBuf;
|
||||||
import net.minecraft.network.protocol.game.*;
|
import net.minecraft.network.protocol.game.*;
|
@ -0,0 +1,16 @@
|
|||||||
|
package de.epiceric.shopchest.nms.v1_19_R2.network.entity;
|
||||||
|
|
||||||
|
import de.epiceric.shopchest.nms.network.entity.FakeItem;
|
||||||
|
import net.minecraft.world.entity.EntityType;
|
||||||
|
|
||||||
|
public class FakeItemImpl extends FakeEntityImpl implements FakeItem {
|
||||||
|
|
||||||
|
public FakeItemImpl() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected EntityType<?> getEntityType() {
|
||||||
|
return EntityType.ITEM;
|
||||||
|
}
|
||||||
|
}
|
@ -1,7 +1,7 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_19_R2.metadata;
|
package de.epiceric.shopchest.nms.v1_19_R2.network.entity.metadata;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperties;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperties;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperty;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperty;
|
||||||
import net.minecraft.network.syncher.SynchedEntityData;
|
import net.minecraft.network.syncher.SynchedEntityData;
|
||||||
import net.minecraft.world.entity.decoration.ArmorStand;
|
import net.minecraft.world.entity.decoration.ArmorStand;
|
||||||
|
|
@ -1,9 +1,9 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_19_R2.metadata;
|
package de.epiceric.shopchest.nms.v1_19_R2.network.entity.metadata;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.NMSComponent;
|
import de.epiceric.shopchest.nms.NMSComponent;
|
||||||
import de.epiceric.shopchest.nms.ReflectionUtils;
|
import de.epiceric.shopchest.nms.ReflectionUtils;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperties;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperties;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperty;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperty;
|
||||||
import net.minecraft.network.chat.Component;
|
import net.minecraft.network.chat.Component;
|
||||||
import net.minecraft.network.syncher.EntityDataAccessor;
|
import net.minecraft.network.syncher.EntityDataAccessor;
|
||||||
import net.minecraft.network.syncher.SynchedEntityData;
|
import net.minecraft.network.syncher.SynchedEntityData;
|
@ -1,6 +1,6 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_19_R2.metadata;
|
package de.epiceric.shopchest.nms.v1_19_R2.network.entity.metadata;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataValue;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataValue;
|
||||||
import net.minecraft.network.syncher.SynchedEntityData;
|
import net.minecraft.network.syncher.SynchedEntityData;
|
||||||
|
|
||||||
public interface ExplicitMetadataValue extends MetadataValue {
|
public interface ExplicitMetadataValue extends MetadataValue {
|
@ -1,8 +1,8 @@
|
|||||||
package de.epiceric.shopchest.nms.v1_19_R2.metadata;
|
package de.epiceric.shopchest.nms.v1_19_R2.network.entity.metadata;
|
||||||
|
|
||||||
import de.epiceric.shopchest.nms.ReflectionUtils;
|
import de.epiceric.shopchest.nms.ReflectionUtils;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperties;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperties;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperty;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperty;
|
||||||
import net.minecraft.network.syncher.EntityDataAccessor;
|
import net.minecraft.network.syncher.EntityDataAccessor;
|
||||||
import net.minecraft.network.syncher.SynchedEntityData;
|
import net.minecraft.network.syncher.SynchedEntityData;
|
||||||
import net.minecraft.world.entity.item.ItemEntity;
|
import net.minecraft.world.entity.item.ItemEntity;
|
@ -0,0 +1,21 @@
|
|||||||
|
package de.epiceric.shopchest.nms.v1_19_R2.network.entity.metadata;
|
||||||
|
|
||||||
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperties;
|
||||||
|
|
||||||
|
public class MetadataPropertiesImpl implements MetadataProperties {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Entity entity() {
|
||||||
|
return new EntityMetadataProperties();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ArmorStand armorStand() {
|
||||||
|
return new ArmorStandMetadataProperties();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Item item() {
|
||||||
|
return new ItemMetadataProperties();
|
||||||
|
}
|
||||||
|
}
|
@ -1,7 +1,7 @@
|
|||||||
package de.epiceric.shopchest.nms;
|
package de.epiceric.shopchest.nms;
|
||||||
|
|
||||||
import de.epiceric.shopchest.ShopChest;
|
import de.epiceric.shopchest.ShopChest;
|
||||||
import de.epiceric.shopchest.nms.metadata.MetadataProperties;
|
import de.epiceric.shopchest.nms.network.entity.metadata.MetadataProperties;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user