Search in sources :

Example 1 with SignItem

use of net.minecraft.item.SignItem in project Biome-Makeover by Lemonszz.

the class WoodTypeInfo method sign.

public WoodTypeInfo sign(SignType type) {
    SignBlock standing = new SignBlock(BMBlocks.settings(Material.WOOD, 1.0F).noCollision(), type);
    WallSignBlock wall = new WallSignBlock(BMBlocks.settings(Material.WOOD, 1.0F).noCollision(), type);
    set(Type.SIGN, standing);
    set(Type.SIGN_WALL, wall);
    set(Type.SIGN, new SignItem(BMItems.settings(), standing, wall));
    ((BlockEntityTypeAccessor) BlockEntityType.SIGN).bm_addBlockTypes(standing, wall);
    return this;
}
Also used : SignItem(net.minecraft.item.SignItem) BlockEntityTypeAccessor(party.lemons.biomemakeover.util.access.BlockEntityTypeAccessor)

Aggregations

SignItem (net.minecraft.item.SignItem)1 BlockEntityTypeAccessor (party.lemons.biomemakeover.util.access.BlockEntityTypeAccessor)1