public static void registerTexture( TextureStitchEvent.Pre event ) { textureInside = event.getMap().registerSprite( TEXTURE_INSIDE ); } }
public static TextureAtlasSprite forName(TextureMap ir, String name) { return ir.registerSprite(new ResourceLocation(LibResources.PREFIX_MOD + name)); }
public static TextureAtlasSprite forName(TextureMap ir, String name, String dir) { return ir.registerSprite(new ResourceLocation(LibResources.PREFIX_MOD + dir + "/" + name)); }
public static void registerSprite( TextureStitchEvent.Pre event ) { BlockEnergyParticle = event.getMap().registerSprite( new ResourceLocation( "appliedenergistics2:particles/energy" ) ); BlockMatterCannonParticle = event.getMap().registerSprite( new ResourceLocation( "appliedenergistics2:particles/matter_cannon" ) ); } }
@SideOnly(Side.CLIENT) private void registerSprites() { TextureMap textureMapBlocks = Minecraft.getMinecraft().getTextureMapBlocks(); textureMapBlocks.registerSprite(plain); textureMapBlocks.registerSprite(fancy); textureMapBlocks.registerSprite(pollinatedPlain); textureMapBlocks.registerSprite(pollinatedFancy); }
public void registerIcons(TextureMap map) { GTLog.logger.info("Registering fluid pipe textures."); for(MaterialIconSet iconSet : generatedSets) { ResourceLocation location = MaterialIconType.pipeSide.getBlockPath(iconSet); ResourceLocation endLocation = MaterialIconType.pipeHuge.getBlockPath(iconSet); this.pipeSideTextures.put(iconSet, map.registerSprite(location)); this.pipeEndTextures.put(iconSet, map.registerSprite(endLocation)); } }
@Nullable @Override public TextureAtlasSprite apply(@Nullable ResourceLocation input) { return Minecraft.getMinecraft().getTextureMapBlocks().registerSprite(input); } });
public static void registerTextures(TextureMap iconRegister) { BASE_TEXTURE_SPRITE = iconRegister.registerSprite(BASE_TEXTURE); if (BASE_TEXTURE_TRANSFORM == null) { BASE_TEXTURE_TRANSFORM = SimpleServiceLocator.cclProxy.createIconTransformer(BASE_TEXTURE_SPRITE); } else { BASE_TEXTURE_TRANSFORM.update(BASE_TEXTURE_SPRITE); } }
@Override @SideOnly(Side.CLIENT) public void registerIcons(TextureMap textureMap) { this.sprites = new HashMap<>(); for(RenderSide overlayFace : RenderSide.values()) { String faceName = overlayFace.name().toLowerCase(); ResourceLocation resourceLocation = new ResourceLocation(GTValues.MODID, String.format("blocks/%s/%s", basePath, faceName)); sprites.put(overlayFace, textureMap.registerSprite(resourceLocation)); } }
@SubscribeEvent public void onMapping(TextureStitchEvent.Pre event) { event.getMap().registerSprite(FODDER); } }
@SubscribeEvent public void onMapping(TextureStitchEvent.Pre event) { Ingredient.INGREDIENTS.values().stream().filter(component -> component.getFluid() != null).forEach(component -> event.getMap().registerSprite(component.getFluid())); } }
@Override @SideOnly(Side.CLIENT) public void registerSprites(Item item, ITextureManager manager) { TextureMap textureMap = Minecraft.getMinecraft().getTextureMapBlocks(); woodTop = textureMap.registerSprite(new ResourceLocation(Constants.MOD_ID, "blocks/wood/heart." + name)); woodBark = textureMap.registerSprite(new ResourceLocation(Constants.MOD_ID, "blocks/wood/bark." + name)); }
@SideOnly(Side.CLIENT) @SubscribeEvent public void onIconLoad(TextureStitchEvent.Pre event) { for (Entry<String, TextureAtlasSprite> entry : sprites.entrySet()) { Log.debug("TextureStitchEvent.Pre for ", entry.getKey()); entry.setValue(event.getMap().registerSprite(new ResourceLocation(NullHelper.notnull(entry.getKey(), "internal data corruption")))); } }
@Override @SideOnly(Side.CLIENT) public void registerSprites() { if (overlay != null) { TextureMap map = Minecraft.getMinecraft().getTextureMapBlocks(); map.registerSprite(overlay.sprite); } }
@SubscribeEvent @SideOnly(Side.CLIENT) public void textureHook(TextureStitchEvent.Pre event) { for (int i = 0; i < ParticleSnow.sprites.length; i++) { ParticleSnow.sprites[i] = event.getMap().registerSprite(new ResourceLocation("forestry:entity/particles/snow." + (i + 1))); } beeSprite = event.getMap().registerSprite(new ResourceLocation("forestry:entity/particles/swarm_bee")); }
@SubscribeEvent public void stitcherEventPre(TextureStitchEvent.Pre event) { ResourceLocation flameRL = new ResourceLocation("minecraftbyexample:entity/flame_fx"); event.getMap().registerSprite(flameRL); } }
@SideOnly(Side.CLIENT) @SubscribeEvent public static void onIconLoad(TextureStitchEvent.Pre event) { event.getMap().registerSprite(XP_JUICE.getFluid().getStill()); event.getMap().registerSprite(XP_JUICE.getFluid().getFlowing()); }
@SideOnly(Side.CLIENT) @SubscribeEvent public void onTextureStitch(TextureStitchEvent event) { ParticleGolemLaser.sprite = event.getMap().registerSprite(new ResourceLocation(Const.MODID, "entity/particle_mote")); }
@Override @SideOnly(Side.CLIENT) public void registerSprites() { String spriteName = getItemTexture(); TextureMap textureMap = Minecraft.getMinecraft().getTextureMapBlocks(); textureMap.registerSprite(new ResourceLocation(spriteName)); } }
@SideOnly(Side.CLIENT) @Override public void registerSprites(ITextureManager manager) { IMachineProperties<?> machineProperties = blockType.getMachineProperties(); if (machineProperties instanceof IMachinePropertiesTesr) { TextureMap textureMapBlocks = Minecraft.getMinecraft().getTextureMapBlocks(); String particleTextureLocation = ((IMachinePropertiesTesr) machineProperties).getParticleTextureLocation(); textureMapBlocks.registerSprite(new ResourceLocation(particleTextureLocation)); } } }