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 VersionedRegistry<BlockMappings>A versioned registry which holdsBlockMappingsfor each version.static final ArrayRegistry<String>A registry which stores unique Java IDs to its clean identifier This is used in the statistics form.static final IntMappedRegistry<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 SimpleMappedRegistry<org.geysermc.geyser.api.block.custom.CustomBlockData,Set<Integer>> A registry which stores Custom Block Data for extended collision boxes and the Java IDs of blocks that will have said extended collision boxes placed above them.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 ArrayRegistry<BlockMapping>A registry which stores Java IDs toBlockMapping, containing miscellaneous information about blocks and their behavior in many cases.static final MappedRegistry<String,Integer, it.unimi.dsi.fastutil.objects.Object2IntMap<String>> A mapped registry containing the Java identifiers to IDs.static final SimpleMappedRegistry<String,String> A mapped registry which stores Java to Bedrock block identifiers.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. -
JAVA_TO_BEDROCK_IDENTIFIERS
A mapped registry which stores Java to Bedrock block identifiers. -
JAVA_BLOCKS
A registry which stores Java IDs toBlockMapping, containing miscellaneous information about blocks and their behavior in many cases. -
COLLISIONS
A mapped registry containing which holds block IDs to itsBlockCollision. -
JAVA_IDENTIFIER_TO_ID
public static final MappedRegistry<String,Integer, JAVA_IDENTIFIER_TO_IDit.unimi.dsi.fastutil.objects.Object2IntMap<String>> A mapped registry containing the Java identifiers to IDs. -
CLEAN_JAVA_IDENTIFIERS
A registry which stores unique Java IDs to its clean identifier This is used in the statistics form. -
WATERLOGGED
A registry containing all the waterlogged blockstates. -
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. -
EXTENDED_COLLISION_BOXES
public static final SimpleMappedRegistry<org.geysermc.geyser.api.block.custom.CustomBlockData,Set<Integer>> EXTENDED_COLLISION_BOXESA registry which stores Custom Block Data for extended collision boxes and the Java IDs of blocks that will have said extended collision boxes placed above them. -
CUSTOM_SKULLS
A registry which stores skin texture hashes to custom skull blocks.
-
-
Constructor Details
-
BlockRegistries
public BlockRegistries()
-
-
Method Details
-
init
public static void init()
-