This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void render(SignTileEntity tileentity, float partialticks, MatrixStack matrixstack, IRenderTypeBuffer buffer, int combinedlight, int combinedoverlay) | |
{ | |
BlockState blockstate = tileentity.getBlockState(); | |
matrixstack.push(); | |
if (blockstate.getBlock() instanceof StandingSignBlock) | |
{ | |
matrixstack.translate(0.5D, 1.0D, 0.5D); | |
float f1 = -((float)(blockstate.get(StandingSignBlock.ROTATION) * 360) / 16.0F); | |
matrixstack.rotate(Vector3f.YP.rotationDegrees(f1)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void clientRegistries(final FMLClientSetupEvent event) | |
{ | |
ClientRegistry.bindTileEntityRenderer(TileEntityType.Builder.create(SignTileEntity::new, | |
Blocks.ACACIA_SIGN, | |
Blocks.BIRCH_SIGN, | |
Blocks.DARK_OAK_SIGN, | |
Blocks.JUNGLE_SIGN, | |
Blocks.OAK_SIGN, | |
Blocks.SPRUCE_SIGN, | |
Blocks.ACACIA_WALL_SIGN, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package drachenbauer32.recreatedsignsmod.tileentities.renderers; | |
import java.util.List; | |
import com.mojang.blaze3d.matrix.MatrixStack; | |
import com.mojang.blaze3d.vertex.IVertexBuilder; | |
import net.minecraft.block.AbstractSignBlock; | |
import net.minecraft.block.Block; | |
import net.minecraft.block.BlockState; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package drachenbauer32.coloredflowerpotsmod.util; | |
import drachenbauer32.coloredflowerpotsmod.ColoredFlowerPots; | |
import drachenbauer32.coloredflowerpotsmod.init.ColoredFlowerPotsItems; | |
import net.minecraft.item.ItemGroup; | |
import net.minecraft.item.ItemStack; | |
import net.minecraft.util.NonNullList; | |
public class ColoredFlowerPotsItemGroup extends ItemGroup | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package drachenbauer32.basiccolorsimprovemod; | |
import drachenbauer32.basiccolorsimprovemod.init.BasicColorsImproveBlocks; | |
import drachenbauer32.basiccolorsimprovemod.init.BasicColorsImproveItems; | |
import drachenbauer32.basiccolorsimprovemod.util.Reference; | |
import net.minecraft.block.material.MaterialColor; | |
import net.minecraft.item.DyeColor; | |
import net.minecraftforge.common.MinecraftForge; | |
import net.minecraftforge.fml.common.Mod; | |
import net.minecraftforge.fml.common.ObfuscationReflectionHelper; |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.