mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-30 02:38:34 +01:00
AtomSponge Smiley Cloud
This commit is contained in:
parent
8a6530d459
commit
3572c4a4b5
3 changed files with 25 additions and 3 deletions
|
@ -10,7 +10,6 @@
|
||||||
|
|
||||||
package ellpeck.actuallyadditions.blocks.render;
|
package ellpeck.actuallyadditions.blocks.render;
|
||||||
|
|
||||||
import ellpeck.actuallyadditions.proxy.ClientProxy;
|
|
||||||
import net.minecraft.client.model.ModelRenderer;
|
import net.minecraft.client.model.ModelRenderer;
|
||||||
|
|
||||||
public class ModelSmileyCloud extends ModelBaseAA{
|
public class ModelSmileyCloud extends ModelBaseAA{
|
||||||
|
@ -162,7 +161,7 @@ public class ModelSmileyCloud extends ModelBaseAA{
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getName(){
|
public String getName(){
|
||||||
return ClientProxy.bulletForMyValentine ? "modelPinkFluffyUnicloud" : "modelSmileyCloud";
|
return "modelSmileyCloud";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -12,19 +12,24 @@ package ellpeck.actuallyadditions.blocks.render;
|
||||||
|
|
||||||
import ellpeck.actuallyadditions.misc.cloud.ISmileyCloudEasterEgg;
|
import ellpeck.actuallyadditions.misc.cloud.ISmileyCloudEasterEgg;
|
||||||
import ellpeck.actuallyadditions.misc.cloud.SmileyCloudEasterEggs;
|
import ellpeck.actuallyadditions.misc.cloud.SmileyCloudEasterEggs;
|
||||||
|
import ellpeck.actuallyadditions.proxy.ClientProxy;
|
||||||
import ellpeck.actuallyadditions.tile.TileEntitySmileyCloud;
|
import ellpeck.actuallyadditions.tile.TileEntitySmileyCloud;
|
||||||
|
import ellpeck.actuallyadditions.util.ModUtil;
|
||||||
import ellpeck.actuallyadditions.util.StringUtil;
|
import ellpeck.actuallyadditions.util.StringUtil;
|
||||||
import net.minecraft.client.Minecraft;
|
import net.minecraft.client.Minecraft;
|
||||||
import net.minecraft.client.renderer.OpenGlHelper;
|
import net.minecraft.client.renderer.OpenGlHelper;
|
||||||
import net.minecraft.client.renderer.Tessellator;
|
import net.minecraft.client.renderer.Tessellator;
|
||||||
import net.minecraft.client.renderer.entity.RenderManager;
|
import net.minecraft.client.renderer.entity.RenderManager;
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
|
import net.minecraft.util.ResourceLocation;
|
||||||
import org.lwjgl.opengl.GL11;
|
import org.lwjgl.opengl.GL11;
|
||||||
|
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
public class RenderSmileyCloud extends RenderTileEntity{
|
public class RenderSmileyCloud extends RenderTileEntity{
|
||||||
|
|
||||||
|
private static final ResourceLocation resLocValentine = new ResourceLocation(ModUtil.MOD_ID_LOWER, "textures/blocks/models/modelPinkFluffyUnicloud.png");
|
||||||
|
|
||||||
public RenderSmileyCloud(ModelBaseAA model){
|
public RenderSmileyCloud(ModelBaseAA model){
|
||||||
super(model);
|
super(model);
|
||||||
}
|
}
|
||||||
|
@ -75,7 +80,12 @@ public class RenderSmileyCloud extends RenderTileEntity{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(ClientProxy.bulletForMyValentine || (theCloud.name != null && !theCloud.name.isEmpty() && theCloud.name.equals("Pink Fluffy Unicloud"))){
|
||||||
|
this.bindTexture(resLocValentine);
|
||||||
|
}
|
||||||
|
else{
|
||||||
this.bindTexture(resLoc);
|
this.bindTexture(resLoc);
|
||||||
|
}
|
||||||
|
|
||||||
theModel.render(0.0625F);
|
theModel.render(0.0625F);
|
||||||
|
|
||||||
|
|
|
@ -358,6 +358,19 @@ public class SmileyCloudEasterEggs{
|
||||||
renderHeadBlock(InitBlocks.blockColoredLampOn, 4, 40F);
|
renderHeadBlock(InitBlocks.blockColoredLampOn, 4, 40F);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
//AtomSponge
|
||||||
|
register(new ISmileyCloudEasterEgg(){
|
||||||
|
@Override
|
||||||
|
public String[] getTriggerNames(){
|
||||||
|
return new String[]{"sponge", "atomsponge", "atom", "explosions", "explosion"};
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void renderExtra(float f){
|
||||||
|
renderHoldingItem(false, new ItemStack(Items.gunpowder));
|
||||||
|
renderHeadBlock(Blocks.sponge, 2, 20F);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void register(ISmileyCloudEasterEgg egg){
|
private static void register(ISmileyCloudEasterEgg egg){
|
||||||
|
|
Loading…
Reference in a new issue