net.minecraft.client.particle.IParticleFactory Java Examples

The following examples show how to use net.minecraft.client.particle.IParticleFactory. 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: BWEntityFX.java    From NOVA-Core with GNU Lesser General Public License v3.0 5 votes vote down vote up
public EntityFX createEntityFX(net.minecraft.world.World world) {
	//Look up for particle factory and pass it into BWEntityFX
	IParticleFactory particleFactory = (IParticleFactory) FMLClientHandler.instance().getClient().effectRenderer.field_178932_g.get(particleID);
	EntityFX entity = particleFactory.getEntityFX(0, world, 0, 0, 0, 0, 0, 0, 0);
	WrapperEvent.BWEntityFXCreate event = new WrapperEvent.BWEntityFXCreate(this, entity);
	Game.events().publish(event);
	return entity;
}
 
Example #2
Source File: FootstepParticle.java    From Hyperium with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public EntityFX spawn(World world, double x, double y, double z) {
    Map<Integer, IParticleFactory> particleMap = ((IMixinEffectRenderer) Minecraft.getMinecraft().effectRenderer).getParticleMap();
    IParticleFactory iParticleFactory = particleMap.get(EnumParticleTypes.FOOTSTEP.getParticleID());
    return iParticleFactory.getEntityFX(EnumParticleTypes.FOOTSTEP.getParticleID(), world, x, y, z, 0.0F, -0.1F, 0.0F, 0);
}
 
Example #3
Source File: NoteParticle.java    From Hyperium with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public EntityFX spawn(World world, double x, double y, double z) {
    Map<Integer, IParticleFactory> particleMap = ((IMixinEffectRenderer) Minecraft.getMinecraft().effectRenderer).getParticleMap();
    IParticleFactory iParticleFactory = particleMap.get(EnumParticleTypes.NOTE.getParticleID());
    return iParticleFactory.getEntityFX(EnumParticleTypes.NOTE.getParticleID(), world, x, y, z, 0.0F, -0.1F, 0.0F, 0);
}
 
Example #4
Source File: SuspendedDepthParticle.java    From Hyperium with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public EntityFX spawn(World world, double x, double y, double z) {
    Map<Integer, IParticleFactory> particleMap = ((IMixinEffectRenderer) Minecraft.getMinecraft().effectRenderer).getParticleMap();
    IParticleFactory iParticleFactory = particleMap.get(EnumParticleTypes.SUSPENDED_DEPTH.getParticleID());
    return iParticleFactory.getEntityFX(EnumParticleTypes.SUSPENDED_DEPTH.getParticleID(), world, x, y, z, 0.0F, -0.1F, 0.0F, 0);
}
 
Example #5
Source File: BlockCrackParticle.java    From Hyperium with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public EntityFX spawn(World world, double x, double y, double z) {
    Map<Integer, IParticleFactory> particleMap = ((IMixinEffectRenderer) Minecraft.getMinecraft().effectRenderer).getParticleMap();
    IParticleFactory iParticleFactory = particleMap.get(EnumParticleTypes.BLOCK_CRACK.getParticleID());
    return iParticleFactory.getEntityFX(EnumParticleTypes.BLOCK_CRACK.getParticleID(), world, x, y, z, 0.0F, -0.1F, 0.0F, 0);
}
 
Example #6
Source File: SpellMobParticle.java    From Hyperium with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public EntityFX spawn(World world, double x, double y, double z) {
    Map<Integer, IParticleFactory> particleMap = ((IMixinEffectRenderer) Minecraft.getMinecraft().effectRenderer).getParticleMap();
    IParticleFactory iParticleFactory = particleMap.get(EnumParticleTypes.SPELL_MOB.getParticleID());
    return iParticleFactory.getEntityFX(EnumParticleTypes.SPELL_MOB.getParticleID(), world, x, y, z, 0.0F, -0.1F, 0.0F, 0);
}
 
Example #7
Source File: SpellWitchParticle.java    From Hyperium with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public EntityFX spawn(World world, double x, double y, double z) {
    Map<Integer, IParticleFactory> particleMap = ((IMixinEffectRenderer) Minecraft.getMinecraft().effectRenderer).getParticleMap();
    IParticleFactory iParticleFactory = particleMap.get(EnumParticleTypes.SPELL_WITCH.getParticleID());
    return iParticleFactory.getEntityFX(EnumParticleTypes.SPELL_WITCH.getParticleID(), world, x, y, z, 0.0F, -0.1F, 0.0F, 0);
}
 
Example #8
Source File: SpellMobAmbientParticle.java    From Hyperium with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public EntityFX spawn(World world, double x, double y, double z) {
    Map<Integer, IParticleFactory> particleMap = ((IMixinEffectRenderer) Minecraft.getMinecraft().effectRenderer).getParticleMap();
    IParticleFactory iParticleFactory = particleMap.get(EnumParticleTypes.SPELL_MOB_AMBIENT.getParticleID());
    return iParticleFactory.getEntityFX(EnumParticleTypes.SPELL_MOB_AMBIENT.getParticleID(), world, x, y, z, 0.0F, -0.1F, 0.0F, 0);
}
 
Example #9
Source File: SpellParticle.java    From Hyperium with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public EntityFX spawn(World world, double x, double y, double z) {
    Map<Integer, IParticleFactory> particleMap = ((IMixinEffectRenderer) Minecraft.getMinecraft().effectRenderer).getParticleMap();
    IParticleFactory iParticleFactory = particleMap.get(EnumParticleTypes.SPELL.getParticleID());
    return iParticleFactory.getEntityFX(EnumParticleTypes.SPELL.getParticleID(), world, x, y, z, 0.0F, -0.1F, 0.0F, 0);
}
 
Example #10
Source File: SpellInstantParticle.java    From Hyperium with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public EntityFX spawn(World world, double x, double y, double z) {
    Map<Integer, IParticleFactory> particleMap = ((IMixinEffectRenderer) Minecraft.getMinecraft().effectRenderer).getParticleMap();
    IParticleFactory iParticleFactory = particleMap.get(EnumParticleTypes.SPELL_INSTANT.getParticleID());
    return iParticleFactory.getEntityFX(EnumParticleTypes.SPELL_INSTANT.getParticleID(), world, x, y, z, 0.0F, -0.1F, 0.0F, 0);
}
 
Example #11
Source File: FireworkSparkParticle.java    From Hyperium with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public EntityFX spawn(World world, double x, double y, double z) {
    Map<Integer, IParticleFactory> particleMap = ((IMixinEffectRenderer) Minecraft.getMinecraft().effectRenderer).getParticleMap();
    IParticleFactory iParticleFactory = particleMap.get(EnumParticleTypes.FIREWORKS_SPARK.getParticleID());
    return iParticleFactory.getEntityFX(EnumParticleTypes.FIREWORKS_SPARK.getParticleID(), world, x, y, z, 0.0F, -0.1F, 0.0F, 0);
}
 
Example #12
Source File: SnowballParticle.java    From Hyperium with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public EntityFX spawn(World world, double x, double y, double z) {
    Map<Integer, IParticleFactory> particleMap = ((IMixinEffectRenderer) Minecraft.getMinecraft().effectRenderer).getParticleMap();
    IParticleFactory iParticleFactory = particleMap.get(EnumParticleTypes.SNOWBALL.getParticleID());
    return iParticleFactory.getEntityFX(EnumParticleTypes.SNOWBALL.getParticleID(), world, x, y, z, 0.0F, -0.1F, 0.0F, 0);
}
 
Example #13
Source File: VillagerAngryParticle.java    From Hyperium with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public EntityFX spawn(World world, double x, double y, double z) {
    Map<Integer, IParticleFactory> particleMap = ((IMixinEffectRenderer) Minecraft.getMinecraft().effectRenderer).getParticleMap();
    IParticleFactory iParticleFactory = particleMap.get(EnumParticleTypes.VILLAGER_ANGRY.getParticleID());
    return iParticleFactory.getEntityFX(EnumParticleTypes.VILLAGER_ANGRY.getParticleID(), world, x, y, z, 0.0F, -0.1F, 0.0F, 0);
}
 
Example #14
Source File: CloudParticle.java    From Hyperium with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public EntityFX spawn(World world, double x, double y, double z) {
    Map<Integer, IParticleFactory> particleMap = ((IMixinEffectRenderer) Minecraft.getMinecraft().effectRenderer).getParticleMap();
    IParticleFactory iParticleFactory = particleMap.get(EnumParticleTypes.CLOUD.getParticleID());
    return iParticleFactory.getEntityFX(EnumParticleTypes.CLOUD.getParticleID(), world, x, y, z, 0.0F, -0.1F, 0.0F, 0);
}
 
Example #15
Source File: RedstoneParticle.java    From Hyperium with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public EntityFX spawn(World world, double x, double y, double z) {
    Map<Integer, IParticleFactory> particleMap = ((IMixinEffectRenderer) Minecraft.getMinecraft().effectRenderer).getParticleMap();
    IParticleFactory iParticleFactory = particleMap.get(EnumParticleTypes.REDSTONE.getParticleID());
    return iParticleFactory.getEntityFX(EnumParticleTypes.REDSTONE.getParticleID(), world, x, y, z, 0.0F, -0.1F, 0.0F, 0);
}
 
Example #16
Source File: WaterDropParticle.java    From Hyperium with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public EntityFX spawn(World world, double x, double y, double z) {
    Map<Integer, IParticleFactory> particleMap = ((IMixinEffectRenderer) Minecraft.getMinecraft().effectRenderer).getParticleMap();
    IParticleFactory iParticleFactory = particleMap.get(EnumParticleTypes.WATER_DROP.getParticleID());
    return iParticleFactory.getEntityFX(EnumParticleTypes.WATER_DROP.getParticleID(), world, x, y, z, 0.0F, -0.1F, 0.0F, 0);
}
 
Example #17
Source File: MixinEffectRenderer.java    From Hyperium with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public Map<Integer, IParticleFactory> getParticleMap() {
    return particleTypes;
}
 
Example #18
Source File: BWParticle.java    From NOVA-Core with GNU Lesser General Public License v3.0 4 votes vote down vote up
public Particle createParticle(net.minecraft.world.World world) {
	//Look up for particle factory and pass it into BWParticle
	IParticleFactory particleFactory = FMLClientHandler.instance().getClient().effectRenderer.particleTypes.get(particleID);
	Particle particle = particleFactory.createParticle(0, world, 0, 0, 0, 0, 0, 0, 0);
	return particle;
}
 
Example #19
Source File: LavaDripParticle.java    From Hyperium with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public EntityFX spawn(World world, double x, double y, double z) {
    Map<Integer, IParticleFactory> particleMap = ((IMixinEffectRenderer) Minecraft.getMinecraft().effectRenderer).getParticleMap();
    IParticleFactory iParticleFactory = particleMap.get(EnumParticleTypes.DRIP_LAVA.getParticleID());
    return iParticleFactory.getEntityFX(EnumParticleTypes.DRIP_LAVA.getParticleID(), world, x, y, z, 0.0F, -0.1F, 0.0F, 0);
}
 
Example #20
Source File: ItemCrackParticle.java    From Hyperium with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public EntityFX spawn(World world, double x, double y, double z) {
    Map<Integer, IParticleFactory> particleMap = ((IMixinEffectRenderer) Minecraft.getMinecraft().effectRenderer).getParticleMap();
    IParticleFactory iParticleFactory = particleMap.get(EnumParticleTypes.ITEM_CRACK.getParticleID());
    return iParticleFactory.getEntityFX(EnumParticleTypes.ITEM_CRACK.getParticleID(), world, x, y, z, 0.0F, -0.1F, 0.0F, 0);
}
 
Example #21
Source File: SmokeNormalParticle.java    From Hyperium with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public EntityFX spawn(World world, double x, double y, double z) {
    Map<Integer, IParticleFactory> particleMap = ((IMixinEffectRenderer) Minecraft.getMinecraft().effectRenderer).getParticleMap();
    IParticleFactory iParticleFactory = particleMap.get(EnumParticleTypes.SMOKE_NORMAL.getParticleID());
    return iParticleFactory.getEntityFX(EnumParticleTypes.SMOKE_NORMAL.getParticleID(), world, x, y, z, 0.0F, -0.1F, 0.0F, 0);
}
 
Example #22
Source File: CritParticle.java    From Hyperium with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public EntityFX spawn(World world, double x, double y, double z) {
    Map<Integer, IParticleFactory> particleMap = ((IMixinEffectRenderer) Minecraft.getMinecraft().effectRenderer).getParticleMap();
    IParticleFactory iParticleFactory = particleMap.get(EnumParticleTypes.CRIT.getParticleID());
    return iParticleFactory.getEntityFX(EnumParticleTypes.CRIT.getParticleID(), world, x, y, z, 0.0F, -0.1F, 0.0F, 0);
}
 
Example #23
Source File: WaterBubbleParticle.java    From Hyperium with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public EntityFX spawn(World world, double x, double y, double z) {
    Map<Integer, IParticleFactory> particleMap = ((IMixinEffectRenderer) Minecraft.getMinecraft().effectRenderer).getParticleMap();
    IParticleFactory iParticleFactory = particleMap.get(EnumParticleTypes.WATER_BUBBLE.getParticleID());
    return iParticleFactory.getEntityFX(EnumParticleTypes.WATER_BUBBLE.getParticleID(), world, x, y, z, 0.0F, -0.1F, 0.0F, 0);
}
 
Example #24
Source File: VillagerHappyParticle.java    From Hyperium with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public EntityFX spawn(World world, double x, double y, double z) {
    Map<Integer, IParticleFactory> particleMap = ((IMixinEffectRenderer) Minecraft.getMinecraft().effectRenderer).getParticleMap();
    IParticleFactory iParticleFactory = particleMap.get(EnumParticleTypes.VILLAGER_HAPPY.getParticleID());
    return iParticleFactory.getEntityFX(EnumParticleTypes.VILLAGER_HAPPY.getParticleID(), world, x, y, z, 0.0F, -0.1F, 0.0F, 0);
}
 
Example #25
Source File: WaterDripParticle.java    From Hyperium with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public EntityFX spawn(World world, double x, double y, double z) {
    Map<Integer, IParticleFactory> particleMap = ((IMixinEffectRenderer) Minecraft.getMinecraft().effectRenderer).getParticleMap();
    IParticleFactory iParticleFactory = particleMap.get(EnumParticleTypes.DRIP_WATER.getParticleID());
    return iParticleFactory.getEntityFX(EnumParticleTypes.DRIP_WATER.getParticleID(), world, x, y, z, 0.0F, -0.1F, 0.0F, 0);
}
 
Example #26
Source File: SmokeLargeParticle.java    From Hyperium with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public EntityFX spawn(World world, double x, double y, double z) {
    Map<Integer, IParticleFactory> particleMap = ((IMixinEffectRenderer) Minecraft.getMinecraft().effectRenderer).getParticleMap();
    IParticleFactory iParticleFactory = particleMap.get(EnumParticleTypes.SMOKE_LARGE.getParticleID());
    return iParticleFactory.getEntityFX(EnumParticleTypes.SMOKE_LARGE.getParticleID(), world, x, y, z, 0.0F, -0.1F, 0.0F, 0);
}
 
Example #27
Source File: FlameParticle.java    From Hyperium with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public EntityFX spawn(World world, double x, double y, double z) {
    Map<Integer, IParticleFactory> particleMap = ((IMixinEffectRenderer) Minecraft.getMinecraft().effectRenderer).getParticleMap();
    IParticleFactory iParticleFactory = particleMap.get(EnumParticleTypes.FLAME.getParticleID());
    return iParticleFactory.getEntityFX(EnumParticleTypes.FLAME.getParticleID(), world, x, y, z, 0.0F, -0.1F, 0.0F, 0);
}
 
Example #28
Source File: LavaParticle.java    From Hyperium with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public EntityFX spawn(World world, double x, double y, double z) {
    Map<Integer, IParticleFactory> particleMap = ((IMixinEffectRenderer) Minecraft.getMinecraft().effectRenderer).getParticleMap();
    IParticleFactory iParticleFactory = particleMap.get(EnumParticleTypes.LAVA.getParticleID());
    return iParticleFactory.getEntityFX(EnumParticleTypes.LAVA.getParticleID(), world, x, y, z, 0.0F, -0.1F, 0.0F, 0);
}
 
Example #29
Source File: PortalParticle.java    From Hyperium with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public EntityFX spawn(World world, double x, double y, double z) {
    Map<Integer, IParticleFactory> particleMap = ((IMixinEffectRenderer) Minecraft.getMinecraft().effectRenderer).getParticleMap();
    IParticleFactory iParticleFactory = particleMap.get(EnumParticleTypes.PORTAL.getParticleID());
    return iParticleFactory.getEntityFX(EnumParticleTypes.PORTAL.getParticleID(), world, x, y, z, 0.0F, -0.1F, 0.0F, 0);
}
 
Example #30
Source File: SnowShovelParticle.java    From Hyperium with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Override
public EntityFX spawn(World world, double x, double y, double z) {
    Map<Integer, IParticleFactory> particleMap = ((IMixinEffectRenderer) Minecraft.getMinecraft().effectRenderer).getParticleMap();
    IParticleFactory iParticleFactory = particleMap.get(EnumParticleTypes.SNOW_SHOVEL.getParticleID());
    return iParticleFactory.getEntityFX(EnumParticleTypes.SNOW_SHOVEL.getParticleID(), world, x, y, z, 0.0F, -0.1F, 0.0F, 0);
}