Package cn.nukkit.network.protocol
Class StartGamePacket
java.lang.Object
cn.nukkit.utils.BinaryStream
cn.nukkit.network.protocol.DataPacket
cn.nukkit.network.protocol.StartGamePacket
- All Implemented Interfaces:
Cloneable
- Since:
- 15-10-13
-
Field Summary
Modifier and TypeFieldDescriptionboolean
Whether block runtime IDs should be replaced by 32-bit integer hashes of the NBT block state.final List<CustomBlockDefinition>
boolean
boolean
byte
boolean
boolean
boolean
long
int
int
byte
boolean
int
boolean
int
long
long
boolean
static final int
static final int
static final int
static final int
static final int
int
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
Deprecated.boolean
boolean
boolean
boolean
boolean
float
boolean
static final byte
int
float
int
int
float
long
int
int
int
int
boolean
int
float
int
float
float
float
Fields inherited from class cn.nukkit.network.protocol.DataPacket
EMPTY_ARRAY, isEncoded, reliability
Fields inherited from class cn.nukkit.utils.BinaryStream
count, offset
-
Constructor Summary
-
Method Summary
Methods inherited from class cn.nukkit.network.protocol.DataPacket
clean, clone, compress, compress, getChannel, getProtocolUsed, packetId, reset, setChannel, tryEncode
Methods inherited from class cn.nukkit.utils.BinaryStream
feof, get, get, getArray, getAttributeList, getBlockFace, getBlockVector3, getBoolean, getBuffer, getByte, getByteArray, getCount, getEntityLink, getEntityRuntimeId, getEntityUniqueId, getFloat, getFloat, getImage, getInt, getLFloat, getLFloat, getLInt, getLLong, getLong, getLShort, getLTriad, getOffset, getRecipeIngredient, getShort, getSignedBlockPosition, getSkin, getSlot, getString, getTag, getTriad, getUnsignedVarInt, getUnsignedVarLong, getUUID, getVarInt, getVarLong, getVector2f, getVector3f, put, putArray, putArray, putArray, putAttributeList, putBlockFace, putBlockVector3, putBlockVector3, putBoolean, putByte, putByteArray, putEntityLink, putEntityRuntimeId, putEntityUniqueId, putFloat, putGameRules, putImage, putInt, putLFloat, putLInt, putLLong, putLong, putLShort, putLTriad, putRecipeIngredient, putRecipeIngredient, putShort, putSignedBlockPosition, putSkin, putSlot, putSlot, putString, putTag, putTriad, putUnsignedVarInt, putUnsignedVarLong, putUUID, putVarInt, putVarLong, putVector2f, putVector2f, putVector3f, putVector3f, setBuffer, setBuffer, setOffset
-
Field Details
-
NETWORK_ID
public static final byte NETWORK_ID- See Also:
-
GAME_PUBLISH_SETTING_NO_MULTI_PLAY
public static final int GAME_PUBLISH_SETTING_NO_MULTI_PLAY- See Also:
-
GAME_PUBLISH_SETTING_INVITE_ONLY
public static final int GAME_PUBLISH_SETTING_INVITE_ONLY- See Also:
-
GAME_PUBLISH_SETTING_FRIENDS_ONLY
public static final int GAME_PUBLISH_SETTING_FRIENDS_ONLY- See Also:
-
GAME_PUBLISH_SETTING_FRIENDS_OF_FRIENDS
public static final int GAME_PUBLISH_SETTING_FRIENDS_OF_FRIENDS- See Also:
-
GAME_PUBLISH_SETTING_PUBLIC
public static final int GAME_PUBLISH_SETTING_PUBLIC- See Also:
-
entityUniqueId
public long entityUniqueId -
entityRuntimeId
public long entityRuntimeId -
playerGamemode
public int playerGamemode -
x
public float x -
y
public float y -
z
public float z -
yaw
public float yaw -
pitch
public float pitch -
seed
public long seed -
dimension
public byte dimension -
generator
public int generator -
worldGamemode
public int worldGamemode -
difficulty
public int difficulty -
spawnX
public int spawnX -
spawnY
public int spawnY -
spawnZ
public int spawnZ -
hasAchievementsDisabled
public boolean hasAchievementsDisabled -
worldEditor
public boolean worldEditor -
dayCycleStopTime
public int dayCycleStopTime -
eduEditionOffer
public int eduEditionOffer -
hasEduFeaturesEnabled
public boolean hasEduFeaturesEnabled -
rainLevel
public float rainLevel -
lightningLevel
public float lightningLevel -
hasConfirmedPlatformLockedContent
public boolean hasConfirmedPlatformLockedContent -
multiplayerGame
public boolean multiplayerGame -
broadcastToLAN
public boolean broadcastToLAN -
xblBroadcastIntent
public int xblBroadcastIntent -
platformBroadcastIntent
public int platformBroadcastIntent -
commandsEnabled
public boolean commandsEnabled -
isTexturePacksRequired
public boolean isTexturePacksRequired -
gameRules
-
bonusChest
public boolean bonusChest -
hasStartWithMapEnabled
public boolean hasStartWithMapEnabled -
permissionLevel
public int permissionLevel -
serverChunkTickRange
public int serverChunkTickRange -
hasLockedBehaviorPack
public boolean hasLockedBehaviorPack -
hasLockedResourcePack
public boolean hasLockedResourcePack -
isFromLockedWorldTemplate
public boolean isFromLockedWorldTemplate -
isUsingMsaGamertagsOnly
public boolean isUsingMsaGamertagsOnly -
isFromWorldTemplate
public boolean isFromWorldTemplate -
isWorldTemplateOptionLocked
public boolean isWorldTemplateOptionLocked -
isOnlySpawningV1Villagers
public boolean isOnlySpawningV1Villagers -
vanillaVersion
-
levelId
-
worldName
-
isTrial
public boolean isTrial -
isMovementServerAuthoritative
Deprecated. -
serverAuthoritativeMovement
-
isInventoryServerAuthoritative
-
currentTick
public long currentTick -
enchantmentSeed
public int enchantmentSeed -
blockProperties
-
multiplayerCorrelationId
-
isDisablingPersonas
public boolean isDisablingPersonas -
isDisablingCustomSkins
public boolean isDisablingCustomSkins -
clientSideGenerationEnabled
public boolean clientSideGenerationEnabled -
emoteChatMuted
public boolean emoteChatMuted- Since:
- v567
-
blockNetworkIdsHashed
public boolean blockNetworkIdsHashedWhether block runtime IDs should be replaced by 32-bit integer hashes of the NBT block state. Unlike runtime IDs, this hashes should be persistent across versions and should make support for data-driven/custom blocks easier.- Since:
- v582
-
createdInEditor
public boolean createdInEditor- Since:
- v582
-
exportedFromEditor
public boolean exportedFromEditor- Since:
- v582
-
chatRestrictionLevel
public byte chatRestrictionLevel -
disablePlayerInteractions
public boolean disablePlayerInteractions
-
-
Constructor Details
-
StartGamePacket
public StartGamePacket()
-
-
Method Details
-
pid
public byte pid()- Specified by:
pid
in classDataPacket
-
decode
public void decode()- Specified by:
decode
in classDataPacket
-
encode
public void encode()- Specified by:
encode
in classDataPacket
-
toString
-