mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2024-11-27 04:45:38 +01:00
Make some NMS classes package-private
This commit is contained in:
parent
769d3dacb2
commit
1da71326d7
@ -14,7 +14,7 @@ import me.filoghost.holographicdisplays.nms.common.PacketListener;
|
||||
import net.minecraft.server.v1_10_R1.PacketPlayInUseEntity;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class InboundPacketHandler extends ChannelInboundHandlerAdapter {
|
||||
class InboundPacketHandler extends ChannelInboundHandlerAdapter {
|
||||
|
||||
public static final String HANDLER_NAME = "holographic_displays_listener";
|
||||
private static final ReflectField<Integer> ENTITY_ID_FIELD = ReflectField.lookup(int.class, PacketPlayInUseEntity.class, "a");
|
||||
@ -22,7 +22,7 @@ public class InboundPacketHandler extends ChannelInboundHandlerAdapter {
|
||||
private final Player player;
|
||||
private final PacketListener packetListener;
|
||||
|
||||
public InboundPacketHandler(Player player, PacketListener packetListener) {
|
||||
InboundPacketHandler(Player player, PacketListener packetListener) {
|
||||
this.player = player;
|
||||
this.packetListener = packetListener;
|
||||
}
|
||||
|
@ -10,11 +10,11 @@ import me.filoghost.holographicdisplays.nms.common.EntityID;
|
||||
import me.filoghost.holographicdisplays.nms.common.PacketGroup;
|
||||
import me.filoghost.holographicdisplays.nms.common.entity.ClickableNMSPacketEntity;
|
||||
|
||||
public class VersionClickableNMSPacketEntity implements ClickableNMSPacketEntity {
|
||||
class VersionClickableNMSPacketEntity implements ClickableNMSPacketEntity {
|
||||
|
||||
private final EntityID slimeID;
|
||||
|
||||
public VersionClickableNMSPacketEntity(EntityID slimeID) {
|
||||
VersionClickableNMSPacketEntity(EntityID slimeID) {
|
||||
this.slimeID = slimeID;
|
||||
}
|
||||
|
||||
|
@ -11,12 +11,12 @@ import me.filoghost.holographicdisplays.nms.common.PacketGroup;
|
||||
import me.filoghost.holographicdisplays.nms.common.entity.ItemNMSPacketEntity;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
public class VersionItemNMSPacketEntity implements ItemNMSPacketEntity {
|
||||
class VersionItemNMSPacketEntity implements ItemNMSPacketEntity {
|
||||
|
||||
private final EntityID itemID;
|
||||
private final EntityID vehicleID;
|
||||
|
||||
public VersionItemNMSPacketEntity(EntityID itemID, EntityID vehicleID) {
|
||||
VersionItemNMSPacketEntity(EntityID itemID, EntityID vehicleID) {
|
||||
this.itemID = itemID;
|
||||
this.vehicleID = vehicleID;
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ import me.filoghost.holographicdisplays.nms.common.PacketListener;
|
||||
import net.minecraft.server.v1_11_R1.PacketPlayInUseEntity;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class InboundPacketHandler extends ChannelInboundHandlerAdapter {
|
||||
class InboundPacketHandler extends ChannelInboundHandlerAdapter {
|
||||
|
||||
public static final String HANDLER_NAME = "holographic_displays_listener";
|
||||
private static final ReflectField<Integer> ENTITY_ID_FIELD = ReflectField.lookup(int.class, PacketPlayInUseEntity.class, "a");
|
||||
@ -22,7 +22,7 @@ public class InboundPacketHandler extends ChannelInboundHandlerAdapter {
|
||||
private final Player player;
|
||||
private final PacketListener packetListener;
|
||||
|
||||
public InboundPacketHandler(Player player, PacketListener packetListener) {
|
||||
InboundPacketHandler(Player player, PacketListener packetListener) {
|
||||
this.player = player;
|
||||
this.packetListener = packetListener;
|
||||
}
|
||||
|
@ -10,11 +10,11 @@ import me.filoghost.holographicdisplays.nms.common.EntityID;
|
||||
import me.filoghost.holographicdisplays.nms.common.PacketGroup;
|
||||
import me.filoghost.holographicdisplays.nms.common.entity.ClickableNMSPacketEntity;
|
||||
|
||||
public class VersionClickableNMSPacketEntity implements ClickableNMSPacketEntity {
|
||||
class VersionClickableNMSPacketEntity implements ClickableNMSPacketEntity {
|
||||
|
||||
private final EntityID slimeID;
|
||||
|
||||
public VersionClickableNMSPacketEntity(EntityID slimeID) {
|
||||
VersionClickableNMSPacketEntity(EntityID slimeID) {
|
||||
this.slimeID = slimeID;
|
||||
}
|
||||
|
||||
|
@ -11,12 +11,12 @@ import me.filoghost.holographicdisplays.nms.common.PacketGroup;
|
||||
import me.filoghost.holographicdisplays.nms.common.entity.ItemNMSPacketEntity;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
public class VersionItemNMSPacketEntity implements ItemNMSPacketEntity {
|
||||
class VersionItemNMSPacketEntity implements ItemNMSPacketEntity {
|
||||
|
||||
private final EntityID itemID;
|
||||
private final EntityID vehicleID;
|
||||
|
||||
public VersionItemNMSPacketEntity(EntityID itemID, EntityID vehicleID) {
|
||||
VersionItemNMSPacketEntity(EntityID itemID, EntityID vehicleID) {
|
||||
this.itemID = itemID;
|
||||
this.vehicleID = vehicleID;
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ import me.filoghost.holographicdisplays.nms.common.PacketListener;
|
||||
import net.minecraft.server.v1_12_R1.PacketPlayInUseEntity;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class InboundPacketHandler extends ChannelInboundHandlerAdapter {
|
||||
class InboundPacketHandler extends ChannelInboundHandlerAdapter {
|
||||
|
||||
public static final String HANDLER_NAME = "holographic_displays_listener";
|
||||
private static final ReflectField<Integer> ENTITY_ID_FIELD = ReflectField.lookup(int.class, PacketPlayInUseEntity.class, "a");
|
||||
@ -22,7 +22,7 @@ public class InboundPacketHandler extends ChannelInboundHandlerAdapter {
|
||||
private final Player player;
|
||||
private final PacketListener packetListener;
|
||||
|
||||
public InboundPacketHandler(Player player, PacketListener packetListener) {
|
||||
InboundPacketHandler(Player player, PacketListener packetListener) {
|
||||
this.player = player;
|
||||
this.packetListener = packetListener;
|
||||
}
|
||||
|
@ -10,11 +10,11 @@ import me.filoghost.holographicdisplays.nms.common.EntityID;
|
||||
import me.filoghost.holographicdisplays.nms.common.PacketGroup;
|
||||
import me.filoghost.holographicdisplays.nms.common.entity.ClickableNMSPacketEntity;
|
||||
|
||||
public class VersionClickableNMSPacketEntity implements ClickableNMSPacketEntity {
|
||||
class VersionClickableNMSPacketEntity implements ClickableNMSPacketEntity {
|
||||
|
||||
private final EntityID slimeID;
|
||||
|
||||
public VersionClickableNMSPacketEntity(EntityID slimeID) {
|
||||
VersionClickableNMSPacketEntity(EntityID slimeID) {
|
||||
this.slimeID = slimeID;
|
||||
}
|
||||
|
||||
|
@ -11,12 +11,12 @@ import me.filoghost.holographicdisplays.nms.common.PacketGroup;
|
||||
import me.filoghost.holographicdisplays.nms.common.entity.ItemNMSPacketEntity;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
public class VersionItemNMSPacketEntity implements ItemNMSPacketEntity {
|
||||
class VersionItemNMSPacketEntity implements ItemNMSPacketEntity {
|
||||
|
||||
private final EntityID itemID;
|
||||
private final EntityID vehicleID;
|
||||
|
||||
public VersionItemNMSPacketEntity(EntityID itemID, EntityID vehicleID) {
|
||||
VersionItemNMSPacketEntity(EntityID itemID, EntityID vehicleID) {
|
||||
this.itemID = itemID;
|
||||
this.vehicleID = vehicleID;
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ import me.filoghost.holographicdisplays.nms.common.PacketListener;
|
||||
import net.minecraft.server.v1_13_R2.PacketPlayInUseEntity;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class InboundPacketHandler extends ChannelInboundHandlerAdapter {
|
||||
class InboundPacketHandler extends ChannelInboundHandlerAdapter {
|
||||
|
||||
public static final String HANDLER_NAME = "holographic_displays_listener";
|
||||
private static final ReflectField<Integer> ENTITY_ID_FIELD = ReflectField.lookup(int.class, PacketPlayInUseEntity.class, "a");
|
||||
@ -22,7 +22,7 @@ public class InboundPacketHandler extends ChannelInboundHandlerAdapter {
|
||||
private final Player player;
|
||||
private final PacketListener packetListener;
|
||||
|
||||
public InboundPacketHandler(Player player, PacketListener packetListener) {
|
||||
InboundPacketHandler(Player player, PacketListener packetListener) {
|
||||
this.player = player;
|
||||
this.packetListener = packetListener;
|
||||
}
|
||||
|
@ -10,11 +10,11 @@ import me.filoghost.holographicdisplays.nms.common.EntityID;
|
||||
import me.filoghost.holographicdisplays.nms.common.PacketGroup;
|
||||
import me.filoghost.holographicdisplays.nms.common.entity.ClickableNMSPacketEntity;
|
||||
|
||||
public class VersionClickableNMSPacketEntity implements ClickableNMSPacketEntity {
|
||||
class VersionClickableNMSPacketEntity implements ClickableNMSPacketEntity {
|
||||
|
||||
private final EntityID slimeID;
|
||||
|
||||
public VersionClickableNMSPacketEntity(EntityID slimeID) {
|
||||
VersionClickableNMSPacketEntity(EntityID slimeID) {
|
||||
this.slimeID = slimeID;
|
||||
}
|
||||
|
||||
|
@ -11,12 +11,12 @@ import me.filoghost.holographicdisplays.nms.common.PacketGroup;
|
||||
import me.filoghost.holographicdisplays.nms.common.entity.ItemNMSPacketEntity;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
public class VersionItemNMSPacketEntity implements ItemNMSPacketEntity {
|
||||
class VersionItemNMSPacketEntity implements ItemNMSPacketEntity {
|
||||
|
||||
private final EntityID itemID;
|
||||
private final EntityID vehicleID;
|
||||
|
||||
public VersionItemNMSPacketEntity(EntityID itemID, EntityID vehicleID) {
|
||||
VersionItemNMSPacketEntity(EntityID itemID, EntityID vehicleID) {
|
||||
this.itemID = itemID;
|
||||
this.vehicleID = vehicleID;
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ import me.filoghost.holographicdisplays.nms.common.PacketListener;
|
||||
import net.minecraft.server.v1_14_R1.PacketPlayInUseEntity;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class InboundPacketHandler extends ChannelInboundHandlerAdapter {
|
||||
class InboundPacketHandler extends ChannelInboundHandlerAdapter {
|
||||
|
||||
public static final String HANDLER_NAME = "holographic_displays_listener";
|
||||
private static final ReflectField<Integer> ENTITY_ID_FIELD = ReflectField.lookup(int.class, PacketPlayInUseEntity.class, "a");
|
||||
@ -22,7 +22,7 @@ public class InboundPacketHandler extends ChannelInboundHandlerAdapter {
|
||||
private final Player player;
|
||||
private final PacketListener packetListener;
|
||||
|
||||
public InboundPacketHandler(Player player, PacketListener packetListener) {
|
||||
InboundPacketHandler(Player player, PacketListener packetListener) {
|
||||
this.player = player;
|
||||
this.packetListener = packetListener;
|
||||
}
|
||||
|
@ -10,11 +10,11 @@ import me.filoghost.holographicdisplays.nms.common.EntityID;
|
||||
import me.filoghost.holographicdisplays.nms.common.PacketGroup;
|
||||
import me.filoghost.holographicdisplays.nms.common.entity.ClickableNMSPacketEntity;
|
||||
|
||||
public class VersionClickableNMSPacketEntity implements ClickableNMSPacketEntity {
|
||||
class VersionClickableNMSPacketEntity implements ClickableNMSPacketEntity {
|
||||
|
||||
private final EntityID slimeID;
|
||||
|
||||
public VersionClickableNMSPacketEntity(EntityID slimeID) {
|
||||
VersionClickableNMSPacketEntity(EntityID slimeID) {
|
||||
this.slimeID = slimeID;
|
||||
}
|
||||
|
||||
|
@ -11,12 +11,12 @@ import me.filoghost.holographicdisplays.nms.common.PacketGroup;
|
||||
import me.filoghost.holographicdisplays.nms.common.entity.ItemNMSPacketEntity;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
public class VersionItemNMSPacketEntity implements ItemNMSPacketEntity {
|
||||
class VersionItemNMSPacketEntity implements ItemNMSPacketEntity {
|
||||
|
||||
private final EntityID itemID;
|
||||
private final EntityID vehicleID;
|
||||
|
||||
public VersionItemNMSPacketEntity(EntityID itemID, EntityID vehicleID) {
|
||||
VersionItemNMSPacketEntity(EntityID itemID, EntityID vehicleID) {
|
||||
this.itemID = itemID;
|
||||
this.vehicleID = vehicleID;
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ import me.filoghost.holographicdisplays.nms.common.PacketListener;
|
||||
import net.minecraft.server.v1_15_R1.PacketPlayInUseEntity;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class InboundPacketHandler extends ChannelInboundHandlerAdapter {
|
||||
class InboundPacketHandler extends ChannelInboundHandlerAdapter {
|
||||
|
||||
public static final String HANDLER_NAME = "holographic_displays_listener";
|
||||
private static final ReflectField<Integer> ENTITY_ID_FIELD = ReflectField.lookup(int.class, PacketPlayInUseEntity.class, "a");
|
||||
@ -22,7 +22,7 @@ public class InboundPacketHandler extends ChannelInboundHandlerAdapter {
|
||||
private final Player player;
|
||||
private final PacketListener packetListener;
|
||||
|
||||
public InboundPacketHandler(Player player, PacketListener packetListener) {
|
||||
InboundPacketHandler(Player player, PacketListener packetListener) {
|
||||
this.player = player;
|
||||
this.packetListener = packetListener;
|
||||
}
|
||||
|
@ -10,11 +10,11 @@ import me.filoghost.holographicdisplays.nms.common.EntityID;
|
||||
import me.filoghost.holographicdisplays.nms.common.PacketGroup;
|
||||
import me.filoghost.holographicdisplays.nms.common.entity.ClickableNMSPacketEntity;
|
||||
|
||||
public class VersionClickableNMSPacketEntity implements ClickableNMSPacketEntity {
|
||||
class VersionClickableNMSPacketEntity implements ClickableNMSPacketEntity {
|
||||
|
||||
private final EntityID slimeID;
|
||||
|
||||
public VersionClickableNMSPacketEntity(EntityID slimeID) {
|
||||
VersionClickableNMSPacketEntity(EntityID slimeID) {
|
||||
this.slimeID = slimeID;
|
||||
}
|
||||
|
||||
|
@ -11,12 +11,12 @@ import me.filoghost.holographicdisplays.nms.common.PacketGroup;
|
||||
import me.filoghost.holographicdisplays.nms.common.entity.ItemNMSPacketEntity;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
public class VersionItemNMSPacketEntity implements ItemNMSPacketEntity {
|
||||
class VersionItemNMSPacketEntity implements ItemNMSPacketEntity {
|
||||
|
||||
private final EntityID itemID;
|
||||
private final EntityID vehicleID;
|
||||
|
||||
public VersionItemNMSPacketEntity(EntityID itemID, EntityID vehicleID) {
|
||||
VersionItemNMSPacketEntity(EntityID itemID, EntityID vehicleID) {
|
||||
this.itemID = itemID;
|
||||
this.vehicleID = vehicleID;
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ import me.filoghost.holographicdisplays.nms.common.PacketListener;
|
||||
import net.minecraft.server.v1_16_R1.PacketPlayInUseEntity;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class InboundPacketHandler extends ChannelInboundHandlerAdapter {
|
||||
class InboundPacketHandler extends ChannelInboundHandlerAdapter {
|
||||
|
||||
public static final String HANDLER_NAME = "holographic_displays_listener";
|
||||
private static final ReflectField<Integer> ENTITY_ID_FIELD = ReflectField.lookup(int.class, PacketPlayInUseEntity.class, "a");
|
||||
@ -22,7 +22,7 @@ public class InboundPacketHandler extends ChannelInboundHandlerAdapter {
|
||||
private final Player player;
|
||||
private final PacketListener packetListener;
|
||||
|
||||
public InboundPacketHandler(Player player, PacketListener packetListener) {
|
||||
InboundPacketHandler(Player player, PacketListener packetListener) {
|
||||
this.player = player;
|
||||
this.packetListener = packetListener;
|
||||
}
|
||||
|
@ -10,11 +10,11 @@ import me.filoghost.holographicdisplays.nms.common.EntityID;
|
||||
import me.filoghost.holographicdisplays.nms.common.PacketGroup;
|
||||
import me.filoghost.holographicdisplays.nms.common.entity.ClickableNMSPacketEntity;
|
||||
|
||||
public class VersionClickableNMSPacketEntity implements ClickableNMSPacketEntity {
|
||||
class VersionClickableNMSPacketEntity implements ClickableNMSPacketEntity {
|
||||
|
||||
private final EntityID slimeID;
|
||||
|
||||
public VersionClickableNMSPacketEntity(EntityID slimeID) {
|
||||
VersionClickableNMSPacketEntity(EntityID slimeID) {
|
||||
this.slimeID = slimeID;
|
||||
}
|
||||
|
||||
|
@ -11,12 +11,12 @@ import me.filoghost.holographicdisplays.nms.common.PacketGroup;
|
||||
import me.filoghost.holographicdisplays.nms.common.entity.ItemNMSPacketEntity;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
public class VersionItemNMSPacketEntity implements ItemNMSPacketEntity {
|
||||
class VersionItemNMSPacketEntity implements ItemNMSPacketEntity {
|
||||
|
||||
private final EntityID itemID;
|
||||
private final EntityID vehicleID;
|
||||
|
||||
public VersionItemNMSPacketEntity(EntityID itemID, EntityID vehicleID) {
|
||||
VersionItemNMSPacketEntity(EntityID itemID, EntityID vehicleID) {
|
||||
this.itemID = itemID;
|
||||
this.vehicleID = vehicleID;
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ import me.filoghost.holographicdisplays.nms.common.PacketListener;
|
||||
import net.minecraft.server.v1_16_R2.PacketPlayInUseEntity;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class InboundPacketHandler extends ChannelInboundHandlerAdapter {
|
||||
class InboundPacketHandler extends ChannelInboundHandlerAdapter {
|
||||
|
||||
public static final String HANDLER_NAME = "holographic_displays_listener";
|
||||
private static final ReflectField<Integer> ENTITY_ID_FIELD = ReflectField.lookup(int.class, PacketPlayInUseEntity.class, "a");
|
||||
@ -22,7 +22,7 @@ public class InboundPacketHandler extends ChannelInboundHandlerAdapter {
|
||||
private final Player player;
|
||||
private final PacketListener packetListener;
|
||||
|
||||
public InboundPacketHandler(Player player, PacketListener packetListener) {
|
||||
InboundPacketHandler(Player player, PacketListener packetListener) {
|
||||
this.player = player;
|
||||
this.packetListener = packetListener;
|
||||
}
|
||||
|
@ -10,11 +10,11 @@ import me.filoghost.holographicdisplays.nms.common.EntityID;
|
||||
import me.filoghost.holographicdisplays.nms.common.PacketGroup;
|
||||
import me.filoghost.holographicdisplays.nms.common.entity.ClickableNMSPacketEntity;
|
||||
|
||||
public class VersionClickableNMSPacketEntity implements ClickableNMSPacketEntity {
|
||||
class VersionClickableNMSPacketEntity implements ClickableNMSPacketEntity {
|
||||
|
||||
private final EntityID slimeID;
|
||||
|
||||
public VersionClickableNMSPacketEntity(EntityID slimeID) {
|
||||
VersionClickableNMSPacketEntity(EntityID slimeID) {
|
||||
this.slimeID = slimeID;
|
||||
}
|
||||
|
||||
|
@ -11,12 +11,12 @@ import me.filoghost.holographicdisplays.nms.common.PacketGroup;
|
||||
import me.filoghost.holographicdisplays.nms.common.entity.ItemNMSPacketEntity;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
public class VersionItemNMSPacketEntity implements ItemNMSPacketEntity {
|
||||
class VersionItemNMSPacketEntity implements ItemNMSPacketEntity {
|
||||
|
||||
private final EntityID itemID;
|
||||
private final EntityID vehicleID;
|
||||
|
||||
public VersionItemNMSPacketEntity(EntityID itemID, EntityID vehicleID) {
|
||||
VersionItemNMSPacketEntity(EntityID itemID, EntityID vehicleID) {
|
||||
this.itemID = itemID;
|
||||
this.vehicleID = vehicleID;
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ import me.filoghost.holographicdisplays.nms.common.PacketListener;
|
||||
import net.minecraft.server.v1_16_R3.PacketPlayInUseEntity;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class InboundPacketHandler extends ChannelInboundHandlerAdapter {
|
||||
class InboundPacketHandler extends ChannelInboundHandlerAdapter {
|
||||
|
||||
public static final String HANDLER_NAME = "holographic_displays_listener";
|
||||
private static final ReflectField<Integer> ENTITY_ID_FIELD = ReflectField.lookup(int.class, PacketPlayInUseEntity.class, "a");
|
||||
@ -22,7 +22,7 @@ public class InboundPacketHandler extends ChannelInboundHandlerAdapter {
|
||||
private final Player player;
|
||||
private final PacketListener packetListener;
|
||||
|
||||
public InboundPacketHandler(Player player, PacketListener packetListener) {
|
||||
InboundPacketHandler(Player player, PacketListener packetListener) {
|
||||
this.player = player;
|
||||
this.packetListener = packetListener;
|
||||
}
|
||||
|
@ -10,11 +10,11 @@ import me.filoghost.holographicdisplays.nms.common.EntityID;
|
||||
import me.filoghost.holographicdisplays.nms.common.PacketGroup;
|
||||
import me.filoghost.holographicdisplays.nms.common.entity.ClickableNMSPacketEntity;
|
||||
|
||||
public class VersionClickableNMSPacketEntity implements ClickableNMSPacketEntity {
|
||||
class VersionClickableNMSPacketEntity implements ClickableNMSPacketEntity {
|
||||
|
||||
private final EntityID slimeID;
|
||||
|
||||
public VersionClickableNMSPacketEntity(EntityID slimeID) {
|
||||
VersionClickableNMSPacketEntity(EntityID slimeID) {
|
||||
this.slimeID = slimeID;
|
||||
}
|
||||
|
||||
|
@ -11,12 +11,12 @@ import me.filoghost.holographicdisplays.nms.common.PacketGroup;
|
||||
import me.filoghost.holographicdisplays.nms.common.entity.ItemNMSPacketEntity;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
public class VersionItemNMSPacketEntity implements ItemNMSPacketEntity {
|
||||
class VersionItemNMSPacketEntity implements ItemNMSPacketEntity {
|
||||
|
||||
private final EntityID itemID;
|
||||
private final EntityID vehicleID;
|
||||
|
||||
public VersionItemNMSPacketEntity(EntityID itemID, EntityID vehicleID) {
|
||||
VersionItemNMSPacketEntity(EntityID itemID, EntityID vehicleID) {
|
||||
this.itemID = itemID;
|
||||
this.vehicleID = vehicleID;
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ import me.filoghost.holographicdisplays.nms.common.PacketListener;
|
||||
import net.minecraft.network.protocol.game.PacketPlayInUseEntity;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class InboundPacketHandler extends ChannelInboundHandlerAdapter {
|
||||
class InboundPacketHandler extends ChannelInboundHandlerAdapter {
|
||||
|
||||
public static final String HANDLER_NAME = "holographic_displays_listener";
|
||||
private static final ReflectField<Integer> ENTITY_ID_FIELD = ReflectField.lookup(int.class, PacketPlayInUseEntity.class, "a");
|
||||
@ -22,7 +22,7 @@ public class InboundPacketHandler extends ChannelInboundHandlerAdapter {
|
||||
private final Player player;
|
||||
private final PacketListener packetListener;
|
||||
|
||||
public InboundPacketHandler(Player player, PacketListener packetListener) {
|
||||
InboundPacketHandler(Player player, PacketListener packetListener) {
|
||||
this.player = player;
|
||||
this.packetListener = packetListener;
|
||||
}
|
||||
|
@ -10,11 +10,11 @@ import me.filoghost.holographicdisplays.nms.common.EntityID;
|
||||
import me.filoghost.holographicdisplays.nms.common.PacketGroup;
|
||||
import me.filoghost.holographicdisplays.nms.common.entity.ClickableNMSPacketEntity;
|
||||
|
||||
public class VersionClickableNMSPacketEntity implements ClickableNMSPacketEntity {
|
||||
class VersionClickableNMSPacketEntity implements ClickableNMSPacketEntity {
|
||||
|
||||
private final EntityID slimeID;
|
||||
|
||||
public VersionClickableNMSPacketEntity(EntityID slimeID) {
|
||||
VersionClickableNMSPacketEntity(EntityID slimeID) {
|
||||
this.slimeID = slimeID;
|
||||
}
|
||||
|
||||
|
@ -11,12 +11,12 @@ import me.filoghost.holographicdisplays.nms.common.PacketGroup;
|
||||
import me.filoghost.holographicdisplays.nms.common.entity.ItemNMSPacketEntity;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
public class VersionItemNMSPacketEntity implements ItemNMSPacketEntity {
|
||||
class VersionItemNMSPacketEntity implements ItemNMSPacketEntity {
|
||||
|
||||
private final EntityID itemID;
|
||||
private final EntityID vehicleID;
|
||||
|
||||
public VersionItemNMSPacketEntity(EntityID itemID, EntityID vehicleID) {
|
||||
VersionItemNMSPacketEntity(EntityID itemID, EntityID vehicleID) {
|
||||
this.itemID = itemID;
|
||||
this.vehicleID = vehicleID;
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ import me.filoghost.holographicdisplays.nms.common.PacketListener;
|
||||
import net.minecraft.server.v1_8_R3.PacketPlayInUseEntity;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class InboundPacketHandler extends ChannelInboundHandlerAdapter {
|
||||
class InboundPacketHandler extends ChannelInboundHandlerAdapter {
|
||||
|
||||
public static final String HANDLER_NAME = "holographic_displays_listener";
|
||||
private static final ReflectField<Integer> ENTITY_ID_FIELD = ReflectField.lookup(int.class, PacketPlayInUseEntity.class, "a");
|
||||
@ -22,7 +22,7 @@ public class InboundPacketHandler extends ChannelInboundHandlerAdapter {
|
||||
private final Player player;
|
||||
private final PacketListener packetListener;
|
||||
|
||||
public InboundPacketHandler(Player player, PacketListener packetListener) {
|
||||
InboundPacketHandler(Player player, PacketListener packetListener) {
|
||||
this.player = player;
|
||||
this.packetListener = packetListener;
|
||||
}
|
||||
|
@ -10,11 +10,11 @@ import me.filoghost.holographicdisplays.nms.common.EntityID;
|
||||
import me.filoghost.holographicdisplays.nms.common.PacketGroup;
|
||||
import me.filoghost.holographicdisplays.nms.common.entity.ClickableNMSPacketEntity;
|
||||
|
||||
public class VersionClickableNMSPacketEntity implements ClickableNMSPacketEntity {
|
||||
class VersionClickableNMSPacketEntity implements ClickableNMSPacketEntity {
|
||||
|
||||
private final EntityID slimeID;
|
||||
|
||||
public VersionClickableNMSPacketEntity(EntityID slimeID) {
|
||||
VersionClickableNMSPacketEntity(EntityID slimeID) {
|
||||
this.slimeID = slimeID;
|
||||
}
|
||||
|
||||
|
@ -11,12 +11,12 @@ import me.filoghost.holographicdisplays.nms.common.PacketGroup;
|
||||
import me.filoghost.holographicdisplays.nms.common.entity.ItemNMSPacketEntity;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
public class VersionItemNMSPacketEntity implements ItemNMSPacketEntity {
|
||||
class VersionItemNMSPacketEntity implements ItemNMSPacketEntity {
|
||||
|
||||
private final EntityID itemID;
|
||||
private final EntityID vehicleID;
|
||||
|
||||
public VersionItemNMSPacketEntity(EntityID itemID, EntityID vehicleID) {
|
||||
VersionItemNMSPacketEntity(EntityID itemID, EntityID vehicleID) {
|
||||
this.itemID = itemID;
|
||||
this.vehicleID = vehicleID;
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ import me.filoghost.holographicdisplays.nms.common.PacketListener;
|
||||
import net.minecraft.server.v1_9_R2.PacketPlayInUseEntity;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class InboundPacketHandler extends ChannelInboundHandlerAdapter {
|
||||
class InboundPacketHandler extends ChannelInboundHandlerAdapter {
|
||||
|
||||
public static final String HANDLER_NAME = "holographic_displays_listener";
|
||||
private static final ReflectField<Integer> ENTITY_ID_FIELD = ReflectField.lookup(int.class, PacketPlayInUseEntity.class, "a");
|
||||
@ -22,7 +22,7 @@ public class InboundPacketHandler extends ChannelInboundHandlerAdapter {
|
||||
private final Player player;
|
||||
private final PacketListener packetListener;
|
||||
|
||||
public InboundPacketHandler(Player player, PacketListener packetListener) {
|
||||
InboundPacketHandler(Player player, PacketListener packetListener) {
|
||||
this.player = player;
|
||||
this.packetListener = packetListener;
|
||||
}
|
||||
|
@ -10,11 +10,11 @@ import me.filoghost.holographicdisplays.nms.common.EntityID;
|
||||
import me.filoghost.holographicdisplays.nms.common.PacketGroup;
|
||||
import me.filoghost.holographicdisplays.nms.common.entity.ClickableNMSPacketEntity;
|
||||
|
||||
public class VersionClickableNMSPacketEntity implements ClickableNMSPacketEntity {
|
||||
class VersionClickableNMSPacketEntity implements ClickableNMSPacketEntity {
|
||||
|
||||
private final EntityID slimeID;
|
||||
|
||||
public VersionClickableNMSPacketEntity(EntityID slimeID) {
|
||||
VersionClickableNMSPacketEntity(EntityID slimeID) {
|
||||
this.slimeID = slimeID;
|
||||
}
|
||||
|
||||
|
@ -11,12 +11,12 @@ import me.filoghost.holographicdisplays.nms.common.PacketGroup;
|
||||
import me.filoghost.holographicdisplays.nms.common.entity.ItemNMSPacketEntity;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
public class VersionItemNMSPacketEntity implements ItemNMSPacketEntity {
|
||||
class VersionItemNMSPacketEntity implements ItemNMSPacketEntity {
|
||||
|
||||
private final EntityID itemID;
|
||||
private final EntityID vehicleID;
|
||||
|
||||
public VersionItemNMSPacketEntity(EntityID itemID, EntityID vehicleID) {
|
||||
VersionItemNMSPacketEntity(EntityID itemID, EntityID vehicleID) {
|
||||
this.itemID = itemID;
|
||||
this.vehicleID = vehicleID;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user