Package cn.nukkit.level
Class GlobalBlockPalette
java.lang.Object
cn.nukkit.level.GlobalBlockPalette
@Deprecated
@DeprecationDetails(reason="Reimplemented using BlockState",
replaceWith="BlockStateRegistry",
since="1.4.0.0-PN")
public class GlobalBlockPalette
extends Object
Deprecated.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
getLegacyFullId
(int runtimeId) Deprecated.static String
getName
(int blockId) Deprecated.static int
getOrCreateRuntimeId
(int legacyId) Deprecated.static int
getOrCreateRuntimeId
(int id, int meta) Deprecated.
-
Field Details
-
BLOCK_PALETTE
@Deprecated @DeprecationDetails(reason="Public mutable array", replaceWith="BlockStateRegistry.getBlockPaletteBytes() or BlockStateRegistry.copyBlockPaletteBytes()", since="1.4.0.0-PN") @PowerNukkitOnly public static final byte[] BLOCK_PALETTEDeprecated.
-
-
Constructor Details
-
GlobalBlockPalette
public GlobalBlockPalette()Deprecated.
-
-
Method Details
-
getOrCreateRuntimeId
@Deprecated @DeprecationDetails(reason="Limited to 32 bits meta", since="1.4.0.0-PN", replaceWith="BlockStateRegistry.getRuntimeId(BlockState)") public static int getOrCreateRuntimeId(int id, int meta) Deprecated. -
getOrCreateRuntimeId
@Deprecated @DeprecationDetails(reason="The meta is limited to 32 bits", replaceWith="BlockStateRegistry.getRuntimeId(BlockState)", since="1.3.0.0-PN") public static int getOrCreateRuntimeId(int legacyId) Deprecated. -
getName
@Deprecated @DeprecationDetails(reason="Moved to BlockStateRegistry", replaceWith="BlockStateRegistry.getPersistenceName(int)", since="1.3.0.0-PN") @PowerNukkitOnly public static String getName(int blockId) Deprecated. -
getLegacyFullId
Deprecated.
-