Package org.terasology.world.block.family

Examples of org.terasology.world.block.family.BlockFamilyFactory


                            blockDef.shapes.clear();
                            blockDef.shape = trimmedLoweredShape.getURI().toSimpleString();
                        }

                        if (blockDef.shapes.isEmpty()) {
                            BlockFamilyFactory familyFactory = blockFamilyFactoryRegistry.getBlockFamilyFactory(blockDef.rotation);
                            result.families.add(familyFactory.createBlockFamily(this, blockDefUri, blockDef, blockDefJson));
                        } else {
                            result.families.addAll(processMultiBlockFamily(blockDefUri, blockDef));
                        }
                    }
                }
View Full Code Here


            RegisterBlockFamilyFactory registerInfo = blockFamilyFactory.getAnnotation(RegisterBlockFamilyFactory.class);
            String id = registerInfo.value();
            logger.debug("Registering blockFamilyFactory {}", id);
            try {
                BlockFamilyFactory newBlockFamilyFactory = (BlockFamilyFactory) blockFamilyFactory.newInstance();
                registry.setBlockFamilyFactory(id, newBlockFamilyFactory);
                logger.debug("Loaded blockFamilyFactory {}", id);
            } catch (InstantiationException | IllegalAccessException e) {
                logger.error("Failed to load blockFamilyFactory {}", id, e);
            }
View Full Code Here

TOP

Related Classes of org.terasology.world.block.family.BlockFamilyFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.