mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-23 08:46:44 +01:00
parent
ffdf8aeecf
commit
96d5854b53
1 changed files with 8 additions and 0 deletions
|
@ -45,6 +45,7 @@ import net.minecraft.network.protocol.game.PacketPlayOutCustomPayload;
|
||||||
import net.minecraft.network.protocol.game.PacketPlayOutCustomSoundEffect;
|
import net.minecraft.network.protocol.game.PacketPlayOutCustomSoundEffect;
|
||||||
import net.minecraft.network.protocol.game.PacketPlayOutEntityEquipment;
|
import net.minecraft.network.protocol.game.PacketPlayOutEntityEquipment;
|
||||||
import net.minecraft.network.protocol.game.PacketPlayOutExperience;
|
import net.minecraft.network.protocol.game.PacketPlayOutExperience;
|
||||||
|
import net.minecraft.network.protocol.game.PacketPlayOutGameStateChange;
|
||||||
import net.minecraft.network.protocol.game.PacketPlayOutMap;
|
import net.minecraft.network.protocol.game.PacketPlayOutMap;
|
||||||
import net.minecraft.network.protocol.game.PacketPlayOutNamedSoundEffect;
|
import net.minecraft.network.protocol.game.PacketPlayOutNamedSoundEffect;
|
||||||
import net.minecraft.network.protocol.game.PacketPlayOutPlayerInfo;
|
import net.minecraft.network.protocol.game.PacketPlayOutPlayerInfo;
|
||||||
|
@ -1721,6 +1722,13 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
||||||
getInventory().setItemInMainHand(hand);
|
getInventory().setItemInMainHand(hand);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void showDemoScreen() {
|
||||||
|
if (getHandle().connection == null) return;
|
||||||
|
|
||||||
|
getHandle().connection.send(new PacketPlayOutGameStateChange(PacketPlayOutGameStateChange.DEMO_EVENT, PacketPlayOutGameStateChange.DEMO_PARAM_INTRO));
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isAllowingServerListings() {
|
public boolean isAllowingServerListings() {
|
||||||
return getHandle().allowsListing();
|
return getHandle().allowsListing();
|
||||||
|
|
Loading…
Add table
Reference in a new issue