Java Code Examples for net.minecraft.client.renderer.model.IBakedModel#getParticleTexture()
The following examples show how to use
net.minecraft.client.renderer.model.IBakedModel#getParticleTexture() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ModelProperties.java From CodeChickenLib with GNU Lesser General Public License v2.1 | 5 votes |
public Builder copyFrom(IBakedModel model) { isAO = model.isAmbientOcclusion(); isGui3D = model.isGui3d(); isBuiltInRenderer = model.isBuiltInRenderer(); particle = model.getParticleTexture(); return this; }
Example 2
Source File: TextureUtils.java From CodeChickenLib with GNU Lesser General Public License v2.1 | 5 votes |
@Deprecated public static TextureAtlasSprite getParticleIconForBlock(BlockState state) { IBakedModel model = Minecraft.getInstance().getBlockRendererDispatcher().getModelForState(state); if (model != null) { return model.getParticleTexture(); } return null; }
Example 3
Source File: ModelProperties.java From CodeChickenLib with GNU Lesser General Public License v2.1 | 4 votes |
public static ModelProperties createFromModel(IBakedModel model) { return new ModelProperties(model.isAmbientOcclusion(), model.isGui3d(), model.isBuiltInRenderer(), model.getParticleTexture()); }