Skip to content

Releases: Pinary-Pi/Pinarys-Library

Pinary's Library 1.10

20 Jul 16:55
Compare
Choose a tag to compare

v1.1.0

Adds:

You can now generate blockstates!

Java documentation has also been added, so I will no longer show examples in the changelog.

Pinary's Library 1.0.5

10 Jun 15:23
Compare
Choose a tag to compare

Changelog

v1.0.5

Adds:

A function for generating wall models with theoretically infinite layers.
It works the same way as the other model generating functions and has the name simpleLayeredWall()

Bug Fixes

Stair model generator will no longer try to generate base models more than once.

Changes

You no longer need to provide a modid for the model functions.

Pinary's Library 1.0.3

03 Jun 23:08
Compare
Choose a tag to compare

Changelog

v1.0.3

Adds:

A function for creating slab models with theoretically infinite layers.

Makes it easier to provide textures for model generating functions.

Example:

package net.Pinary_Pi.pinaryslib.data.client;

import java.util.List;

import com.google.gson.JsonElement;

import net.Pinary_Pi.pinaryslib.pinaryslib;
import net.Pinary_Pi.pinaryslib.lib.PinarysModelProvider;
import net.minecraft.data.DataGenerator;

public class ModModelProvider extends PinarysModelProvider {
    private String modid = pinaryslib.MOD_ID;

    public ModModelProvider(DataGenerator generator) {
        super(pinaryslib.MOD_ID, generator);
    }

    @Override
    @SuppressWarnings("unchecked")
    protected List<JsonElement>[] registerModels() {

        @SuppressWarnings("rawtypes")
        List[] array =  {
            simpleLayeredBlock("test_block", textures("mortar", "brick"), modid, "mortar"),
            simpleLayeredSlab("test_slab", textures("mortar", "brick"), modid, "mortar")
        };

        return array;
    }
}

Pinary's Library 1.0.2

01 Jun 14:42
Compare
Choose a tag to compare

Changelog

v1.0.2

Bug Fixes

Now works with Java 8

Pinary's Library 1.0.1

01 Jun 01:13
Compare
Choose a tag to compare

Changelog

v1.0.1

Adds:

The ability to create a block with theoretically infinite layers.

Example

package net.Pinary_Pi.pinaryslib.data.client;

import java.util.ArrayList;
import java.util.List;

import com.google.gson.JsonElement;

import net.Pinary_Pi.pinaryslib.pinaryslib;
import net.Pinary_Pi.pinaryslib.lib.PinarysModelProvider;
import net.minecraft.data.DataGenerator;

public class ModModelProvider extends PinarysModelProvider {
    private String modid = pinaryslib.MOD_ID;

    public ModModelProvider(DataGenerator generator) {
        super(examplemod.MOD_ID, generator);
    }

    @Override
    @SuppressWarnings("unchecked")
    protected List<JsonElement>[] registerModels() {
        List<String> test_block = new ArrayList<>();
        test_block.add("examplemod:block/texture_1");
        test_block.add("examplemod:block/texture_0");

        @SuppressWarnings("rawtypes")
        List[] array =  {
            simpleLayeredBlock("test_block", test_block, modid, "examplemod:block/particle")
        };

        return array;
    }
}