NEVER TELL ME THE RULES

This commit is contained in:
Andrew-71 2023-04-15 09:54:40 +03:00
parent 64be11775f
commit 926721b349
3 changed files with 130 additions and 6 deletions

View file

@ -0,0 +1,27 @@
package su.a71.tardim_ic.tardim_ic.utils;
import com.mojang.authlib.GameProfile;
import net.minecraft.core.BlockPos;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.level.Level;
import java.util.UUID;
public class FakePlayer extends Player {
public FakePlayer(Level lvl, BlockPos blockPos) {
super(lvl, blockPos, 0, new GameProfile(UUID.randomUUID(), "DigitalInterfaceFakePlayer"), null);
}
@Override
public boolean isSpectator() {
return false;
}
@Override
public boolean isCreative() {
return false;
}
}