mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-17 01:15:52 +01:00
Natural spawn test
(without luas)
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
package emu.grasscutter.server.packet.send;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import emu.grasscutter.game.entity.GenshinEntity;
|
||||
import emu.grasscutter.net.packet.GenshinPacket;
|
||||
import emu.grasscutter.net.packet.PacketOpcodes;
|
||||
@@ -18,4 +21,15 @@ public class PacketSceneEntityDisappearNotify extends GenshinPacket {
|
||||
|
||||
this.setData(proto);
|
||||
}
|
||||
|
||||
public PacketSceneEntityDisappearNotify(Collection<GenshinEntity> entities, VisionType disappearType) {
|
||||
super(PacketOpcodes.SceneEntityDisappearNotify);
|
||||
|
||||
SceneEntityDisappearNotify.Builder proto = SceneEntityDisappearNotify.newBuilder()
|
||||
.setDisappearType(disappearType);
|
||||
|
||||
entities.forEach(e -> proto.addEntityList(e.getId()));
|
||||
|
||||
this.setData(proto);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user