Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class WrapperPlayClientUseEntity extends AbstractPacket {
- public static final PacketType TYPE = PacketType.Play.Client.USE_ENTITY;
- public WrapperPlayClientUseEntity() {
- super(new PacketContainer(TYPE), TYPE);
- handle.getModifier().writeDefaults();
- }
- public WrapperPlayClientUseEntity(PacketContainer packet) {
- super(packet, TYPE);
- }
- public int getTargetID() {
- return handle.getIntegers().read(0);
- }
- public Entity getTarget(World world) {
- return handle.getEntityModifier(world).read(0);
- }
- public Entity getTarget(PacketEvent event) {
- return getTarget(event.getPlayer().getWorld());
- }
- public void setTargetID(int value) {
- handle.getIntegers().write(0, value);
- }
- public EntityUseAction getMouse() {
- return handle.getEntityUseActions().read(0);
- }
- public void setMouse(EntityUseAction value) {
- handle.getEntityUseActions().write(0, value);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement