Package thaumcraft.api.aspects

Examples of thaumcraft.api.aspects.IAspectContainer


public class ConverterIAspectContainer implements Converter {
    @Override
    public void convert(final Object value, final Map<Object, Object> output) {
        if (value instanceof IAspectContainer) {
            final IAspectContainer container = (IAspectContainer) value;
            output.put("aspects", container.getAspects());
        }

        if (value instanceof AspectList) {
            final AspectList aspects = (AspectList) value;
            int i = 0;
View Full Code Here


        return 8;
    }

    @Override
    public void addInformation(World world, int x, int y, int z, List<String> infoList){
        IAspectContainer container = (IAspectContainer)world.getTileEntity(x, y, z);
        AspectList aspects = container.getAspects();
        if(aspects.size() > 0) {
            infoList.add("blockTracker.info.thaumcraft");
            for(Map.Entry<Aspect, Integer> entry : aspects.aspects.entrySet()) {
                infoList.add("-" + entry.getValue() + "x " + entry.getKey().getName());
            }
View Full Code Here

TOP

Related Classes of thaumcraft.api.aspects.IAspectContainer

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.