Package org.geysermc.geyser.registry
Class BlockRegistries
java.lang.Object
org.geysermc.geyser.registry.BlockRegistries
Holds all the block registries in Geyser.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ListRegistry<BlockState>A registry which stores Java IDs to JavaBlockStates, each with their specific state differences and a link to the overarching block.static final VersionedRegistry<BlockMappings>A versioned registry which holdsBlockMappingsfor each version.static final ListDeferredRegistry<BlockCollision>A mapped registry containing which holds block IDs to itsBlockCollision.static final SimpleMappedRegistry<String,org.geysermc.geyser.api.block.custom.CustomBlockData> A registry which stores clean Java Ids and the custom block it should be replaced with in the context of items.static final MappedRegistry<Integer,org.geysermc.geyser.api.block.custom.CustomBlockState, it.unimi.dsi.fastutil.ints.Int2ObjectMap<org.geysermc.geyser.api.block.custom.CustomBlockState>> A registry which stores Java Ids and the custom block state it should be replaced with.static final ArrayRegistry<org.geysermc.geyser.api.block.custom.CustomBlockData>A registry containing all the custom blocks.static final SimpleMappedRegistry<String,CustomSkull> A registry which stores skin texture hashes to custom skull blocks.static final SimpleRegistry<BitSet>A registry containing all blockstates which are always interactive.static final SimpleRegistry<BitSet>A registry containing all blockstates which are interactive if the player has the may build permission.static final MappedRegistry<String,Integer, it.unimi.dsi.fastutil.objects.Object2IntMap<String>> A mapped registry containing the Java block state identifiers to IDs.static final ListRegistry<Block>A registry which stores Java IDs toBlock, containing miscellaneous information about blocks and their behavior in many cases.static final SimpleRegistry<BitSet>A registry containing non-vanilla block IDS.static final SimpleMappedRegistry<org.geysermc.geyser.api.block.custom.nonvanilla.JavaBlockState,org.geysermc.geyser.api.block.custom.CustomBlockState> A registry which stores non vanilla java blockstates and the custom block state it should be replaced with.static final SimpleRegistry<BitSet>A registry containing all the waterlogged blockstates. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
BLOCKS
A versioned registry which holdsBlockMappingsfor each version. These block mappings contain primarily Bedrock version-specific data. -
BLOCK_STATES
A registry which stores Java IDs to JavaBlockStates, each with their specific state differences and a link to the overarching block. -
COLLISIONS
A mapped registry containing which holds block IDs to itsBlockCollision. -
JAVA_BLOCKS
A registry which stores Java IDs toBlock, containing miscellaneous information about blocks and their behavior in many cases. -
JAVA_BLOCK_STATE_IDENTIFIER_TO_ID
public static final MappedRegistry<String,Integer, JAVA_BLOCK_STATE_IDENTIFIER_TO_IDit.unimi.dsi.fastutil.objects.Object2IntMap<String>> A mapped registry containing the Java block state identifiers to IDs. -
NON_VANILLA_BLOCK_IDS
A registry containing non-vanilla block IDS. -
WATERLOGGED
A registry containing all the waterlogged blockstates. Properties.WATERLOGGED should not be relied on for two reasons: - Custom blocks - Seagrass, kelp, and bubble columns are assumed waterlogged and don't have a waterlogged property -
INTERACTIVE
A registry containing all blockstates which are always interactive. -
INTERACTIVE_MAY_BUILD
A registry containing all blockstates which are interactive if the player has the may build permission. -
CUSTOM_BLOCKS
public static final ArrayRegistry<org.geysermc.geyser.api.block.custom.CustomBlockData> CUSTOM_BLOCKSA registry containing all the custom blocks. -
CUSTOM_BLOCK_STATE_OVERRIDES
public static final MappedRegistry<Integer,org.geysermc.geyser.api.block.custom.CustomBlockState, CUSTOM_BLOCK_STATE_OVERRIDESit.unimi.dsi.fastutil.ints.Int2ObjectMap<org.geysermc.geyser.api.block.custom.CustomBlockState>> A registry which stores Java Ids and the custom block state it should be replaced with. -
NON_VANILLA_BLOCK_STATE_OVERRIDES
public static final SimpleMappedRegistry<org.geysermc.geyser.api.block.custom.nonvanilla.JavaBlockState,org.geysermc.geyser.api.block.custom.CustomBlockState> NON_VANILLA_BLOCK_STATE_OVERRIDESA registry which stores non vanilla java blockstates and the custom block state it should be replaced with. -
CUSTOM_BLOCK_ITEM_OVERRIDES
public static final SimpleMappedRegistry<String,org.geysermc.geyser.api.block.custom.CustomBlockData> CUSTOM_BLOCK_ITEM_OVERRIDESA registry which stores clean Java Ids and the custom block it should be replaced with in the context of items. -
CUSTOM_SKULLS
A registry which stores skin texture hashes to custom skull blocks.
-
-
Constructor Details
-
BlockRegistries
public BlockRegistries()
-
-
Method Details
-
populate
public static void populate()
-