Java Code Examples for net.minecraft.client.particle.IParticleFactory#getEntityFX()

The following examples show how to use net.minecraft.client.particle.IParticleFactory#getEntityFX() . 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: 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 3
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 4
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 5
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 6
Source File: SuspendedParticle.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.getParticleID());
    return iParticleFactory.getEntityFX(EnumParticleTypes.SUSPENDED.getParticleID(), world, x, y, z, 0.0F, -0.1F, 0.0F, 0);
}
 
Example 7
Source File: HeartParticle.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.HEART.getParticleID());
    return iParticleFactory.getEntityFX(EnumParticleTypes.HEART.getParticleID(), world, x, y, z, 0.0F, -0.1F, 0.0F, 0);
}
 
Example 8
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 9
Source File: SlimeParticle.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.SLIME.getParticleID());
    return iParticleFactory.getEntityFX(EnumParticleTypes.SLIME.getParticleID(), world, x, y, z, 0.0F, -0.1F, 0.0F, 0);
}
 
Example 10
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 11
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 12
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 13
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 14
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 15
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 16
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 17
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 18
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 19
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 20
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);
}