Langue

MetaAwareBlocks

Modrinth

Adds meta-aware versions of several Block rendering functions

367 téléchargements 1 abonnés mis à jour 18mo ago
dernière v0.0.3-alpha Modrinth
Forge 1.7.10 – 1.7.10 Library

MetaAwareBlocks

As of now this only transforms Minecraft's code, and currently that is all that is planned due to other mods being a compatibility nightmare without any great way to go about things automatically. I'd have to write mixins for every single mod, and it's just not practical. If someone wants to create pull requests adding support for a mod, that's great, but for now it only supports Minecraft's native code.

This is a library used to add meta-aware functionality for several (primarily rendering) functions inside of net.minecraft.block.Block.

Usage:

Creating a new block:

class NewBlock implements IMetaAware {
  ...

  @Override
  public boolean renderAsNormalBlock(IBlockAccess world, int x, int y, int z) {
    return world.getBlockMetadata(world, x, y, z) != 0;
  }

  ...
}

Mixin into a preexisting block:

@Mixin(NewBlock.class)
public abstract class MixinNewBlock implements IMetaAware {
  @Override
  public boolean renderAsNormalBlock(IBlockAccess world, int x, int y, int z) {
    return world.getBlockMetadata(world, x, y, z) != 0;
  }
}

Versions

Alpha
0.0.3-alpha
forge · 1.7.10 · 18mo ago
Now adds meta-aware support for Block.canProvidePower, as well as only modifies mixin priority when necessary for Hodgepodge compatibility
162
Alpha
0.0.2-alpha
forge · 1.7.10 · 18mo ago
Fix ArrayIndexOutOfBoundsException in MixinBlockVine.redirectUpdateTick4
104
Alpha
0.0.1-alpha
forge · 1.7.10 · 18mo ago
101

Commentaires 0

Aucun commentaire pour l'instant. Sois le premier à donner ton avis.

Télécharger MetaAwareBlocks

Les fichiers proviennent directement de la source d'origine. Modgrid ne les héberge ni ne les modifie.