mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 10:55:17 +00:00
1 parent
74055595ba
commit
df8fc76c48
3 files changed
+9
-1
No files matched your search
@@ -57,7 +57,7 @@ public interface IBotaniaBoss {
|
||||
/**
|
||||
* Get the serverside UUID of the {@link ServerBossInfo} instance tracking this boss
|
||||
* Note that this is NOT the entity's UUID, nor is it the clientside UUID of the BossInfoServer instance!
|
||||
* You will most likely need to sync this yourself using the datawatcher
|
||||
* You will most likely need to sync this yourself using IEntityAdditionalSpawnData or similar.
|
||||
* @return The uuid.
|
||||
*/
|
||||
public UUID getBossInfoUuid();
|
||||
|
||||
@@ -29,6 +29,7 @@ import net.minecraft.inventory.EquipmentSlotType;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.Items;
|
||||
import net.minecraft.nbt.CompoundNBT;
|
||||
import net.minecraft.network.IPacket;
|
||||
import net.minecraft.network.PacketBuffer;
|
||||
import net.minecraft.network.datasync.DataParameter;
|
||||
import net.minecraft.network.datasync.DataSerializers;
|
||||
@@ -63,6 +64,7 @@ import net.minecraftforge.api.distmarker.Dist;
|
||||
import net.minecraftforge.api.distmarker.OnlyIn;
|
||||
import net.minecraftforge.common.util.FakePlayer;
|
||||
import net.minecraftforge.fml.common.registry.IEntityAdditionalSpawnData;
|
||||
import net.minecraftforge.fml.network.NetworkHooks;
|
||||
import net.minecraftforge.registries.ObjectHolder;
|
||||
import org.lwjgl.opengl.ARBShaderObjects;
|
||||
import vazkii.botania.api.boss.IBotaniaBoss;
|
||||
@@ -1016,6 +1018,12 @@ public class EntityDoppleganger extends MobEntity implements IBotaniaBoss, IEnti
|
||||
Minecraft.getInstance().getSoundHandler().play(new DopplegangerMusic(this));
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
public IPacket<?> createSpawnPacket() {
|
||||
return NetworkHooks.getEntitySpawningPacket(this);
|
||||
}
|
||||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
private static class DopplegangerMusic extends TickableSound {
|
||||
private final EntityDoppleganger guardian;
|
||||
|
||||
Reference in new issue
Block a user