--- a/net/minecraft/client/renderer/BlockModelShapes.java +++ b/net/minecraft/client/renderer/BlockModelShapes.java @@ -24,10 +24,16 @@ this.field_178128_c = p_i46245_1_; } + @Deprecated public TextureAtlasSprite func_178122_a(BlockState p_178122_1_) { return this.func_178125_b(p_178122_1_).func_177554_e(); } + public TextureAtlasSprite getTexture(BlockState state, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos) { + net.minecraftforge.client.model.data.IModelData data = net.minecraftforge.client.model.ModelDataManager.getModelData(world, pos); + return this.func_178125_b(state).getParticleTexture(data == null ? net.minecraftforge.client.model.data.EmptyModelData.INSTANCE : data); + } + public IBakedModel func_178125_b(BlockState p_178125_1_) { IBakedModel ibakedmodel = this.field_178129_a.get(p_178125_1_); if (ibakedmodel == null) {