mirror of
https://github.com/GTNewHorizons/Gadomancy.git
synced 2026-11-24 05:44:42 +00:00
- Added experimental bubble spawn option
This commit is contained in:
1 parent
ceaf8a4a0e
commit
408440fbcd
4 files changed
+83
No files matched your search
@@ -15,6 +15,7 @@ import makeo.gadomancy.common.events.EventHandlerGolem;
|
||||
import makeo.gadomancy.common.events.EventHandlerNetwork;
|
||||
import makeo.gadomancy.common.events.EventHandlerWorld;
|
||||
import makeo.gadomancy.common.network.PacketHandler;
|
||||
import makeo.gadomancy.common.network.packets.PacketStartAnimation;
|
||||
import makeo.gadomancy.common.registration.*;
|
||||
import makeo.gadomancy.common.utils.Injector;
|
||||
import makeo.gadomancy.common.utils.world.WorldProviderTCEldrich;
|
||||
@@ -104,6 +105,14 @@ public class CommonProxy implements IGuiHandler {
|
||||
triggers.put(modid, modTriggers);
|
||||
}
|
||||
|
||||
public void spawnBubbles(World world, float posX, float posY, float posZ, float rangeAroundItem) {
|
||||
PacketStartAnimation pkt = new PacketStartAnimation(PacketStartAnimation.ID_BUBBLES,
|
||||
Float.floatToIntBits(posX), Float.floatToIntBits(posY), Float.floatToIntBits(posZ),
|
||||
Float.floatToIntBits(rangeAroundItem));
|
||||
PacketHandler.INSTANCE.sendToAllAround(pkt, new NetworkRegistry.TargetPoint(world.provider.dimensionId,
|
||||
posX, posY, posZ, 32));
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) {
|
||||
switch (ID) {
|
||||
|
||||
Reference in new issue
Block a user