start 1.10.2

This commit is contained in:
marcin212 committed 2016-10-20 04:32:47 +02:00
1 parent f969f63b66
commit 6a7c4bf67d
826 files changed
+60550 -63758

No files matched your search

@@ -1,17 +1,37 @@
//
// Decompiled by Procyon v0.5.30
//
package binnie.extratrees.proxy;
import forestry.api.core.IIconProvider;
import binnie.extratrees.genetics.FruitSprite;
import forestry.api.core.ForestryAPI;
import binnie.extratrees.ExtraTrees;
import net.minecraft.block.Block;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.client.renderer.block.statemap.StateMapperBase;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.client.model.ModelLoader;
public class ProxyClient extends Proxy implements IExtraTreeProxy {
@Override
public void init() {
//ForestryAPI.textureManager.registerIconProvider(FruitSprite.Average);
}
@Override
public void setCustomStateMapper(String name, Block block) {
ModelLoader.setCustomStateMapper(block, new CustomMapper(name));
}
class CustomMapper extends StateMapperBase {
ResourceLocation rl;
public CustomMapper(String name) {
rl = new ResourceLocation(ExtraTrees.MOD_ID, name);
}
@Override
protected ModelResourceLocation getModelResourceLocation(IBlockState state) {
return new ModelResourceLocation(rl, this.getPropertyString(state.getProperties()));
}
}
public class ProxyClient extends Proxy implements IExtraTreeProxy
{
@Override
public void init() {
ForestryAPI.textureManager.registerIconProvider(FruitSprite.Average);
}
}