26.1-snap-6
This commit is contained in:
1 parent
b1aa6844d1
commit
22c788bf58
13 files changed
+68
-60
No files matched your search
@@ -1,6 +1,5 @@
|
||||
package carpet.mixins;
|
||||
|
||||
import carpet.fakes.ServerWorldInterface;
|
||||
import net.minecraft.core.BlockPos;
|
||||
import net.minecraft.core.Holder;
|
||||
import net.minecraft.core.RegistryAccess;
|
||||
@@ -37,14 +36,12 @@ import org.spongepowered.asm.mixin.injection.Inject;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
import org.spongepowered.asm.mixin.injection.callback.LocalCapture;
|
||||
|
||||
import java.util.function.Supplier;
|
||||
|
||||
import static carpet.script.CarpetEventServer.Event.EXPLOSION;
|
||||
import static carpet.script.CarpetEventServer.Event.LIGHTNING;
|
||||
import static carpet.script.CarpetEventServer.Event.CHUNK_UNLOADED;
|
||||
|
||||
@Mixin(ServerLevel.class)
|
||||
public abstract class ServerLevel_scarpetMixin extends Level implements ServerWorldInterface
|
||||
public abstract class ServerLevel_scarpetMixin extends Level
|
||||
{
|
||||
|
||||
@Shadow public abstract GameRules getGameRules();
|
||||
@@ -97,21 +94,4 @@ public abstract class ServerLevel_scarpetMixin extends Level implements ServerWo
|
||||
CHUNK_UNLOADED.onChunkEvent(level, levelChunk.getPos(), false);
|
||||
}
|
||||
}
|
||||
|
||||
@Final
|
||||
@Shadow
|
||||
private ServerLevelData serverLevelData;
|
||||
@Shadow @Final private PersistentEntitySectionManager<Entity> entityManager;
|
||||
|
||||
@Unique
|
||||
@Override
|
||||
public ServerLevelData getWorldPropertiesCM(){
|
||||
return serverLevelData;
|
||||
}
|
||||
|
||||
@Unique
|
||||
@Override
|
||||
public LevelEntityGetter<Entity> getEntityLookupCMPublic() {
|
||||
return entityManager.getEntityGetter();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user