Make some NMS classes package-private

This commit is contained in:
filoghost 2021-09-20 22:42:25 +02:00
parent 769d3dacb2
commit 1da71326d7
36 changed files with 72 additions and 72 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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