add fart !!!!!!!
This commit is contained in:
parent
e5bd9d98f8
commit
052493a807
1 changed files with 19 additions and 0 deletions
|
@ -75,6 +75,9 @@ public class CorePlugin extends PositionPlugin.PositionListener {
|
||||||
if (packet instanceof ClientboundTagQueryPacket) CorePlugin.this.packetReceived((ClientboundTagQueryPacket) packet);
|
if (packet instanceof ClientboundTagQueryPacket) CorePlugin.this.packetReceived((ClientboundTagQueryPacket) packet);
|
||||||
else if (packet instanceof ClientboundBlockUpdatePacket) CorePlugin.this.packetReceived((ClientboundBlockUpdatePacket) packet);
|
else if (packet instanceof ClientboundBlockUpdatePacket) CorePlugin.this.packetReceived((ClientboundBlockUpdatePacket) packet);
|
||||||
else if (packet instanceof ClientboundSectionBlocksUpdatePacket) CorePlugin.this.packetReceived((ClientboundSectionBlocksUpdatePacket) packet);
|
else if (packet instanceof ClientboundSectionBlocksUpdatePacket) CorePlugin.this.packetReceived((ClientboundSectionBlocksUpdatePacket) packet);
|
||||||
|
|
||||||
|
// TODO: support this (used for worldedit)
|
||||||
|
// else if (packet instanceof ClientboundLevelChunkWithLightPacket) CorePlugin.this.packetReceived((ClientboundLevelChunkWithLightPacket) packet);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -180,6 +183,22 @@ public class CorePlugin extends PositionPlugin.PositionListener {
|
||||||
if (willRefill) refill();
|
if (willRefill) refill();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* public void packetReceived (ClientboundLevelChunkWithLightPacket packet) {
|
||||||
|
final BlockEntityInfo[] infos = packet.getBlockEntities();
|
||||||
|
|
||||||
|
boolean willRefill = false;
|
||||||
|
|
||||||
|
for (BlockEntityInfo info : infos) {
|
||||||
|
final Vector3i position = Vector3i.from(info.getX(), info.getY(), info.getZ());
|
||||||
|
|
||||||
|
System.out.println(position);
|
||||||
|
|
||||||
|
if (isCore(position)) willRefill = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (willRefill) refill();
|
||||||
|
} */
|
||||||
|
|
||||||
public Vector3i absoluteCorePosition () {
|
public Vector3i absoluteCorePosition () {
|
||||||
return relativeCorePosition.add(origin);
|
return relativeCorePosition.add(origin);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue