|
| 1 | +package org.teneted.neotenet.injection.server.level; |
| 2 | + |
| 3 | +import net.minecraft.core.Holder; |
| 4 | +import net.minecraft.core.particles.ExplosionParticleInfo; |
| 5 | +import net.minecraft.core.particles.ParticleOptions; |
| 6 | +import net.minecraft.resources.Identifier; |
| 7 | +import net.minecraft.server.MinecraftServer; |
| 8 | +import net.minecraft.server.bossevents.CustomBossEvents; |
| 9 | +import net.minecraft.server.level.ServerPlayer; |
| 10 | +import net.minecraft.sounds.SoundEvent; |
| 11 | +import net.minecraft.util.RandomSource; |
| 12 | +import net.minecraft.util.random.WeightedList; |
| 13 | +import net.minecraft.world.RandomSequences; |
| 14 | +import net.minecraft.world.damagesource.DamageSource; |
| 15 | +import net.minecraft.world.entity.Entity; |
| 16 | +import net.minecraft.world.level.ExplosionDamageCalculator; |
| 17 | +import net.minecraft.world.level.Level; |
| 18 | +import net.minecraft.world.level.ServerExplosion; |
| 19 | +import net.minecraft.world.level.chunk.LevelChunk; |
| 20 | +import net.minecraft.world.level.levelgen.WorldGenSettings; |
| 21 | +import net.minecraft.world.level.storage.SavedDataStorage; |
| 22 | +import net.minecraft.world.level.timers.TimerQueue; |
| 23 | +import org.bukkit.event.entity.CreatureSpawnEvent; |
| 24 | +import org.bukkit.event.weather.LightningStrikeEvent; |
| 25 | +import org.jetbrains.annotations.Nullable; |
| 26 | + |
| 27 | +public interface ServerLevelInjection { |
| 28 | + |
| 29 | + default WorldGenSettings getWorldGenSettings() { |
| 30 | + throw new IllegalArgumentException("Not implemented"); |
| 31 | + } |
| 32 | + |
| 33 | + default CustomBossEvents getCustomBossEvents() { |
| 34 | + throw new IllegalArgumentException("Not implemented"); |
| 35 | + } |
| 36 | + |
| 37 | + default RandomSource getRandomSequence(Identifier key) { |
| 38 | + throw new IllegalArgumentException("Not implemented"); |
| 39 | + } |
| 40 | + |
| 41 | + default RandomSequences getRandomSequences() { |
| 42 | + throw new IllegalArgumentException("Not implemented"); |
| 43 | + } |
| 44 | + |
| 45 | + default void setWeatherParameters(int clearTime, int rainTime, boolean raining, boolean thundering) { |
| 46 | + throw new IllegalArgumentException("Not implemented"); |
| 47 | + } |
| 48 | + |
| 49 | + default TimerQueue<MinecraftServer> getScheduledEvents() { |
| 50 | + throw new IllegalArgumentException("Not implemented"); |
| 51 | + } |
| 52 | + |
| 53 | + default LevelChunk getChunkIfLoaded(int x, int z) { |
| 54 | + throw new IllegalArgumentException("Not implemented"); |
| 55 | + } |
| 56 | + |
| 57 | + default boolean addWithUUID(Entity entity, CreatureSpawnEvent.SpawnReason reason) { |
| 58 | + throw new IllegalArgumentException("Not implemented"); |
| 59 | + } |
| 60 | + |
| 61 | + default void addDuringTeleport(Entity entity, CreatureSpawnEvent.SpawnReason reason) { |
| 62 | + throw new IllegalArgumentException("Not implemented"); |
| 63 | + } |
| 64 | + |
| 65 | + default boolean addEntity(Entity entity, CreatureSpawnEvent.SpawnReason spawnReason) { |
| 66 | + throw new IllegalArgumentException("Not implemented"); |
| 67 | + } |
| 68 | + |
| 69 | + default boolean tryAddFreshEntityWithPassengers(Entity entity, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason reason) { |
| 70 | + throw new IllegalArgumentException("Not implemented"); |
| 71 | + } |
| 72 | + |
| 73 | + default boolean strikeLightning(Entity entitylightning) { |
| 74 | + throw new IllegalArgumentException("Not implemented"); |
| 75 | + } |
| 76 | + |
| 77 | + default boolean strikeLightning(Entity entitylightning, LightningStrikeEvent.Cause cause) { |
| 78 | + throw new IllegalArgumentException("Not implemented"); |
| 79 | + } |
| 80 | + |
| 81 | + default ServerExplosion explode0(@Nullable Entity source, @Nullable DamageSource damageSource, @Nullable ExplosionDamageCalculator damageCalculator, double x, double y, double z, float r, boolean fire, Level.ExplosionInteraction interactionType, ParticleOptions smallExplosionParticles, ParticleOptions largeExplosionParticles, WeightedList<ExplosionParticleInfo> blockParticles, Holder<SoundEvent> explosionSound) { |
| 82 | + throw new IllegalArgumentException("Not implemented"); |
| 83 | + } |
| 84 | + |
| 85 | + default <T extends ParticleOptions> int sendParticlesSource(ServerPlayer sender, T particle, boolean overrideLimiter, boolean alwaysShow, double x, double y, double z, int count, double xDist, double yDist, double zDist, double speed) { |
| 86 | + throw new IllegalArgumentException("Not implemented"); |
| 87 | + } |
| 88 | + |
| 89 | + default SavedDataStorage getWorldContainerDataStorage() { |
| 90 | + throw new IllegalArgumentException("Not implemented"); |
| 91 | + } |
| 92 | +} |
0 commit comments