| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static BlockRegistry |
get() |
BlockBehavior |
getBehavior(Identifier blockType) |
BlockState |
getBlock(Identifier identifier) |
BlockState |
getBlock(Identifier identifier,
int meta) |
BlockState |
getBlock(int runtimeId) |
BlockState |
getBlock(int id,
int meta) |
BlockState |
getBlock(Item item) |
com.google.common.collect.ImmutableList<BlockState> |
getBlockStates() |
int |
getLegacyId(Identifier identifier) |
int |
getLegacyId(String name) |
Identifier |
getNameFromLegacyId(int id) |
com.nukkitx.nbt.NbtList<com.nukkitx.nbt.NbtMap> |
getPaletteTag() |
com.nukkitx.nbt.NbtMap |
getPropertiesTag() |
int |
getRuntimeId(BlockState blockState) |
int |
getRuntimeId(Identifier identifier,
int meta) |
int |
getRuntimeId(int id,
int meta) |
void |
register(Identifier id,
BlockBehavior behavior) |
public static BlockRegistry get()
public void register(Identifier id, BlockBehavior behavior) throws RegistryException
RegistryExceptionpublic int getRuntimeId(BlockState blockState)
public int getRuntimeId(Identifier identifier, int meta)
public int getRuntimeId(int id,
int meta)
public BlockState getBlock(Identifier identifier)
public BlockState getBlock(Item item)
public BlockState getBlock(Identifier identifier, int meta)
public BlockState getBlock(int id, int meta)
public BlockState getBlock(int runtimeId)
public int getLegacyId(String name)
public int getLegacyId(Identifier identifier)
public Identifier getNameFromLegacyId(int id)
public void close()
throws RegistryException
close in interface RegistryRegistryExceptionpublic com.nukkitx.nbt.NbtList<com.nukkitx.nbt.NbtMap> getPaletteTag()
public com.nukkitx.nbt.NbtMap getPropertiesTag()
public BlockBehavior getBehavior(Identifier blockType)
public com.google.common.collect.ImmutableList<BlockState> getBlockStates()
Copyright © 2020. All rights reserved.