This commit is contained in:
Moulberry committed 2024-07-25 16:40:29 +08:00
1 parent 9c4a30d224
commit 666398e480
174 files changed
+8694 -2942

No files matched your search

@@ -0,0 +1,30 @@
package com.moulberry.flashback.playback;
import com.mojang.authlib.GameProfile;
import net.minecraft.server.MinecraftServer;
import net.minecraft.server.level.ClientInformation;
import net.minecraft.server.level.ServerLevel;
import net.minecraft.server.level.ServerPlayer;
import net.minecraft.stats.Stat;
import net.minecraft.world.item.crafting.RecipeHolder;
import java.util.Collection;
public class ReplayPlayer extends ServerPlayer {
public boolean followLocalPlayerNextTick = false;
public ReplayPlayer(MinecraftServer minecraftServer, ServerLevel serverLevel, GameProfile gameProfile, ClientInformation clientInformation) {
super(minecraftServer, serverLevel, gameProfile, clientInformation);
}
@Override
public int awardRecipes(Collection<RecipeHolder<?>> collection) {
return 0;
}
@Override
public void awardStat(Stat<?> stat, int i) {
}
}