Search in sources :

Example 6 with IBlockDataHandle

use of com.bergerkiller.generated.net.minecraft.world.level.block.state.IBlockDataHandle in project BKCommonLib by bergerhealer.

the class MaterialDataToIBlockData method storeLegacyRemap.

private static void storeLegacyRemap(String legacy_name, String modern_name) {
    final IBlockDataHandle modern_data = getBlockDataFromMaterialName(modern_name);
    iblockdataBuilders.put(getLegacyMaterial(legacy_name), (iblockdata, materialData) -> modern_data);
}
Also used : IBlockDataHandle(com.bergerkiller.generated.net.minecraft.world.level.block.state.IBlockDataHandle)

Aggregations

IBlockDataHandle (com.bergerkiller.generated.net.minecraft.world.level.block.state.IBlockDataHandle)6 Material (org.bukkit.Material)3 MaterialDataToIBlockData (com.bergerkiller.bukkit.common.internal.legacy.MaterialDataToIBlockData)2 MaterialsByName.getLegacyMaterial (com.bergerkiller.bukkit.common.internal.legacy.MaterialsByName.getLegacyMaterial)2 MaterialData (org.bukkit.material.MaterialData)2 ArrayList (java.util.ArrayList)1 List (java.util.List)1 BlockFace (org.bukkit.block.BlockFace)1