I forgot some classes in WrapperRegistry + fixes abstract class
This commit is contained in:
parent
3fd853f2a6
commit
1aec628b19
@ -38,10 +38,15 @@ import fr.pandacube.lib.paper.reflect.wrapper.minecraft.network.protocol.Clientb
|
|||||||
import fr.pandacube.lib.paper.reflect.wrapper.minecraft.network.protocol.Packet;
|
import fr.pandacube.lib.paper.reflect.wrapper.minecraft.network.protocol.Packet;
|
||||||
import fr.pandacube.lib.paper.reflect.wrapper.minecraft.resources.ResourceLocation;
|
import fr.pandacube.lib.paper.reflect.wrapper.minecraft.resources.ResourceLocation;
|
||||||
import fr.pandacube.lib.paper.reflect.wrapper.minecraft.server.ChunkMap;
|
import fr.pandacube.lib.paper.reflect.wrapper.minecraft.server.ChunkMap;
|
||||||
|
import fr.pandacube.lib.paper.reflect.wrapper.minecraft.server.DedicatedPlayerList;
|
||||||
|
import fr.pandacube.lib.paper.reflect.wrapper.minecraft.server.DedicatedServer;
|
||||||
|
import fr.pandacube.lib.paper.reflect.wrapper.minecraft.server.DedicatedServerProperties;
|
||||||
|
import fr.pandacube.lib.paper.reflect.wrapper.minecraft.server.MinecraftServer;
|
||||||
import fr.pandacube.lib.paper.reflect.wrapper.minecraft.server.ServerChunkCache;
|
import fr.pandacube.lib.paper.reflect.wrapper.minecraft.server.ServerChunkCache;
|
||||||
import fr.pandacube.lib.paper.reflect.wrapper.minecraft.server.ServerGamePacketListenerImpl;
|
import fr.pandacube.lib.paper.reflect.wrapper.minecraft.server.ServerGamePacketListenerImpl;
|
||||||
import fr.pandacube.lib.paper.reflect.wrapper.minecraft.server.ServerLevel;
|
import fr.pandacube.lib.paper.reflect.wrapper.minecraft.server.ServerLevel;
|
||||||
import fr.pandacube.lib.paper.reflect.wrapper.minecraft.server.ServerPlayer;
|
import fr.pandacube.lib.paper.reflect.wrapper.minecraft.server.ServerPlayer;
|
||||||
|
import fr.pandacube.lib.paper.reflect.wrapper.minecraft.server.Settings;
|
||||||
import fr.pandacube.lib.paper.reflect.wrapper.minecraft.util.ProgressListener;
|
import fr.pandacube.lib.paper.reflect.wrapper.minecraft.util.ProgressListener;
|
||||||
import fr.pandacube.lib.paper.reflect.wrapper.minecraft.world.AABB;
|
import fr.pandacube.lib.paper.reflect.wrapper.minecraft.world.AABB;
|
||||||
import fr.pandacube.lib.paper.reflect.wrapper.minecraft.world.ChunkPos;
|
import fr.pandacube.lib.paper.reflect.wrapper.minecraft.world.ChunkPos;
|
||||||
@ -115,10 +120,15 @@ public class WrapperRegistry {
|
|||||||
initWrapper(ResourceLocation.class, ResourceLocation.MAPPING.runtimeClass());
|
initWrapper(ResourceLocation.class, ResourceLocation.MAPPING.runtimeClass());
|
||||||
// minecraft.server
|
// minecraft.server
|
||||||
initWrapper(ChunkMap.class, ChunkMap.MAPPING.runtimeClass());
|
initWrapper(ChunkMap.class, ChunkMap.MAPPING.runtimeClass());
|
||||||
|
initWrapper(DedicatedPlayerList.class, DedicatedPlayerList.MAPPING.runtimeClass());
|
||||||
|
initWrapper(DedicatedServer.class, DedicatedServer.MAPPING.runtimeClass());
|
||||||
|
initWrapper(DedicatedServerProperties.class, DedicatedServerProperties.MAPPING.runtimeClass());
|
||||||
|
initWrapper(MinecraftServer.class, MinecraftServer.MAPPING.runtimeClass());
|
||||||
initWrapper(ServerChunkCache.class, ServerChunkCache.MAPPING.runtimeClass());
|
initWrapper(ServerChunkCache.class, ServerChunkCache.MAPPING.runtimeClass());
|
||||||
initWrapper(ServerGamePacketListenerImpl.class, ServerGamePacketListenerImpl.MAPPING.runtimeClass());
|
initWrapper(ServerGamePacketListenerImpl.class, ServerGamePacketListenerImpl.MAPPING.runtimeClass());
|
||||||
initWrapper(ServerLevel.class, ServerLevel.MAPPING.runtimeClass());
|
initWrapper(ServerLevel.class, ServerLevel.MAPPING.runtimeClass());
|
||||||
initWrapper(ServerPlayer.class, ServerPlayer.MAPPING.runtimeClass());
|
initWrapper(ServerPlayer.class, ServerPlayer.MAPPING.runtimeClass());
|
||||||
|
initWrapper(Settings.class, Settings.MAPPING.runtimeClass());
|
||||||
// minecraft.util
|
// minecraft.util
|
||||||
initWrapper(ProgressListener.class, ProgressListener.MAPPING.runtimeClass());
|
initWrapper(ProgressListener.class, ProgressListener.MAPPING.runtimeClass());
|
||||||
// minecraft.world.block
|
// minecraft.world.block
|
||||||
|
@ -5,7 +5,7 @@ import fr.pandacube.lib.paper.reflect.wrapper.ReflectWrapper;
|
|||||||
|
|
||||||
import static fr.pandacube.lib.core.util.ThrowableUtil.wrapEx;
|
import static fr.pandacube.lib.core.util.ThrowableUtil.wrapEx;
|
||||||
|
|
||||||
public abstract class ByteBuf extends ReflectWrapper {
|
public class ByteBuf extends ReflectWrapper {
|
||||||
public static final Reflect.ReflectClass<?> REFLECT = wrapEx(() -> Reflect.ofClass("io.netty.buffer.ByteBuf"));
|
public static final Reflect.ReflectClass<?> REFLECT = wrapEx(() -> Reflect.ofClass("io.netty.buffer.ByteBuf"));
|
||||||
|
|
||||||
protected ByteBuf(Object obj) {
|
protected ByteBuf(Object obj) {
|
||||||
|
Loading…
Reference in New Issue
Block a user