Skip to content

Commit ea370ae

Browse files
committed
more injections
1 parent b418d59 commit ea370ae

22 files changed

Lines changed: 294 additions & 27 deletions

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ tasks.register("prepareNeoForgeOtherSrc", Copy) {
161161

162162
from('src/main/java')
163163
from('projects/neotenet/src/main/java')
164+
from('projects/neoforge/build/generated/sources/neoforge/main/java')
164165
into('projects/neotenet-base/other-src/main/java')
165166
duplicatesStrategy = DuplicatesStrategy.INCLUDE
166167
}

nms-patches/net/minecraft/world/level/chunk/ChunkGeneratorStructureState.patch

Lines changed: 0 additions & 7 deletions
This file was deleted.

nms-patches/net/minecraft/world/level/chunk/DataLayer.patch

Lines changed: 0 additions & 7 deletions
This file was deleted.
10.8 KB
Binary file not shown.

projects/neotenet/src/main/java/org/teneted/neotenet/injection/network/network/protocol/common/custom/DiscardedPayloadInjection.java

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
package org.teneted.neotenet.injection.server.network;
2+
3+
import net.minecraft.network.chat.PlayerChatMessage;
4+
import net.minecraft.world.entity.PositionMoveRotation;
5+
import net.minecraft.world.entity.Relative;
6+
import org.bukkit.Location;
7+
import org.bukkit.event.player.PlayerTeleportEvent;
8+
9+
import java.util.Set;
10+
11+
public interface ServerGamePacketListenerImplInjection {
12+
13+
default boolean teleport(double d0, double d1, double d2, float f, float f1, PlayerTeleportEvent.TeleportCause cause) {
14+
throw new IllegalArgumentException("Not implemented");
15+
}
16+
17+
default boolean teleport(PositionMoveRotation positionmoverotation, Set<Relative> set, PlayerTeleportEvent.TeleportCause cause) {
18+
throw new IllegalArgumentException("Not implemented");
19+
}
20+
21+
default void teleport(Location dest) {
22+
throw new IllegalArgumentException("Not implemented");
23+
}
24+
25+
default void internalTeleport(double d0, double d1, double d2, float f, float f1) {
26+
throw new IllegalArgumentException("Not implemented");
27+
}
28+
29+
default void internalTeleport(PositionMoveRotation destination, Set<Relative> relatives) {
30+
throw new IllegalArgumentException("Not implemented");
31+
}
32+
33+
default void chat(String s, PlayerChatMessage original, boolean async) {
34+
throw new IllegalArgumentException("Not implemented");
35+
}
36+
}
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
package org.teneted.neotenet.injection.server.players;
2+
3+
import com.mojang.authlib.GameProfile;
4+
import net.minecraft.nbt.CompoundTag;
5+
import net.minecraft.network.chat.Component;
6+
import net.minecraft.network.protocol.Packet;
7+
import net.minecraft.server.level.ServerPlayer;
8+
import net.minecraft.server.network.ServerLoginPacketListenerImpl;
9+
import net.minecraft.server.players.NameAndId;
10+
import net.minecraft.stats.ServerStatsCounter;
11+
import net.minecraft.world.entity.Entity;
12+
import net.minecraft.world.entity.player.Player;
13+
import net.minecraft.world.level.Level;
14+
import org.bukkit.Location;
15+
import org.bukkit.event.player.PlayerRespawnEvent;
16+
import org.jetbrains.annotations.Nullable;
17+
18+
import java.util.Optional;
19+
import java.util.UUID;
20+
21+
public interface PlayerListInjection {
22+
23+
default Optional<CompoundTag> loadPlayerData(Player nameAndId) {
24+
throw new IllegalArgumentException("Not implemented");
25+
}
26+
27+
default String neotenet$getRemoveMsg() {
28+
throw new IllegalArgumentException("Not implemented");
29+
}
30+
31+
default @Nullable ServerPlayer canPlayerLogin(ServerLoginPacketListenerImpl serverloginpacketlistenerimpl, GameProfile gameprofile) {
32+
throw new IllegalArgumentException("Not implemented");
33+
}
34+
35+
default boolean disconnectAllPlayersWithProfile(UUID playerId, ServerPlayer player) {
36+
throw new IllegalArgumentException("Not implemented");
37+
}
38+
39+
default ServerPlayer respawn(ServerPlayer serverPlayer, boolean keepAllPlayerData, Entity.RemovalReason removalReason, PlayerRespawnEvent.RespawnReason reason) {
40+
throw new IllegalArgumentException("Not implemented");
41+
}
42+
43+
default ServerPlayer respawn(ServerPlayer serverPlayer, boolean keepAllPlayerData, Entity.RemovalReason removalReason, PlayerRespawnEvent.RespawnReason reason, Location location) {
44+
throw new IllegalArgumentException("Not implemented");
45+
}
46+
47+
default void broadcastAll(Packet packet, Player player) {
48+
throw new IllegalArgumentException("Not implemented");
49+
}
50+
51+
default void broadcastAll(Packet packet, Level level) {
52+
throw new IllegalArgumentException("Not implemented");
53+
}
54+
55+
default void broadcastMessage(Component[] iChatBaseComponents) {
56+
throw new IllegalArgumentException("Not implemented");
57+
}
58+
59+
default ServerStatsCounter getPlayerStats(ServerPlayer entityhuman) {
60+
throw new IllegalArgumentException("Not implemented");
61+
}
62+
63+
default ServerStatsCounter getPlayerStats(NameAndId gameprofile) {
64+
throw new IllegalArgumentException("Not implemented");
65+
}
66+
67+
default void reloadRecipes() {
68+
throw new IllegalArgumentException("Not implemented");
69+
}
70+
}

projects/neotenet/src/main/java/org/teneted/neotenet/injection/world/entity/EntityInjection.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import org.bukkit.Location;
1212
import org.bukkit.craftbukkit.entity.CraftEntity;
1313
import org.bukkit.craftbukkit.event.CraftPortalEvent;
14+
import org.bukkit.event.entity.CreatureSpawnEvent;
1415
import org.bukkit.event.entity.EntityRemoveEvent;
1516
import org.bukkit.event.entity.EntityUnleashEvent;
1617
import org.bukkit.event.player.PlayerTeleportEvent;
@@ -100,4 +101,8 @@ default CraftPortalEvent callPortalEvent(Entity entity, Location exit, PlayerTel
100101
default boolean teleportTo(ServerLevel level, double x, double y, double z, Set<Relative> relatives, float newYRot, float newXRot, boolean resetCamera, org.bukkit.event.player.PlayerTeleportEvent.TeleportCause cause) {
101102
throw new IllegalArgumentException("Not implemented");
102103
}
104+
105+
default void neotenet$pushSpawnReason(CreatureSpawnEvent.SpawnReason spawnReason) {
106+
throw new IllegalArgumentException("Not implemented");
107+
}
103108
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package org.teneted.neotenet.injection.world.entity.raid;
2+
3+
import net.minecraft.world.entity.raid.Raider;
4+
5+
public interface RaidInjection {
6+
7+
default boolean isInProgress() {
8+
throw new IllegalArgumentException("Not implemented");
9+
}
10+
11+
default java.util.Collection<Raider> getRaiders() {
12+
throw new IllegalArgumentException("Not implemented");
13+
}
14+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package org.teneted.neotenet.injection.world.level.block.entity;
2+
3+
import net.minecraft.world.level.block.entity.BannerPatternLayers;
4+
5+
public interface BannerBlockEntityInjection {
6+
7+
default void setPatterns(BannerPatternLayers bannerpatternlayers) {
8+
throw new IllegalArgumentException("Not implemented");
9+
}
10+
}

0 commit comments

Comments
 (0)