net.acomputerdog.BlazeLoader.event
Interface OverrideEventHandler

All Superinterfaces:
BLMod, com.mumfrey.liteloader.modconfig.Exposable, com.mumfrey.liteloader.api.Listener, com.mumfrey.liteloader.LiteMod

public interface OverrideEventHandler
extends BLMod

Interface for mods that handle game events not handled by vanilla. Override events are only called if the game is unable to handle the event on it's own.


Nested Class Summary
static class OverrideEventHandler.ContainerOpenedEventArgs
          Contains args for a ContainerOpenedEvent
 
Method Summary
 boolean overrideAddEntityToTracker(net.minecraft.entity.EntityTracker tracker, net.minecraft.entity.Entity entity, boolean isHandled)
          Adds an entity to an entity tracker.
 boolean overrideContainerOpen(net.minecraft.client.entity.EntityClientPlayerMP player, java.lang.Class containerClass, OverrideEventHandler.ContainerOpenedEventArgs e)
          ~WIP~ Called to allow a mod to display a gui for a custom container
 net.minecraft.network.play.server.S0EPacketSpawnObject overrideCreateSpawnPacket(net.minecraft.entity.Entity entity, boolean isHandled)
          Creates a spawn packet for the given entity.
 net.minecraft.client.particle.EntityFX overrideSpawnParticle(java.lang.String name, net.minecraft.world.World world, double x, double y, double z, double p1, double p2, double p3, net.minecraft.client.particle.EntityFX currParticle)
          Spawns a particle into thw world.
 
Methods inherited from interface net.acomputerdog.BlazeLoader.mod.BLMod
getModDescription, getModId, getName, getNewerVersion, getVersion, isCompatibleWithEnvironment
 
Methods inherited from interface com.mumfrey.liteloader.LiteMod
init, upgradeSettings
 

Method Detail

overrideCreateSpawnPacket

net.minecraft.network.play.server.S0EPacketSpawnObject overrideCreateSpawnPacket(net.minecraft.entity.Entity entity,
                                                                                 boolean isHandled)
Creates a spawn packet for the given entity.

Parameters:
entity - The entity to create the spawn packet for.
isHandled - True if another mod has already created a packet for this entity.
Returns:
Return a spawn packet for the given entity, or null if none exists.

overrideAddEntityToTracker

boolean overrideAddEntityToTracker(net.minecraft.entity.EntityTracker tracker,
                                   net.minecraft.entity.Entity entity,
                                   boolean isHandled)
Adds an entity to an entity tracker.

Parameters:
tracker - The tracker to add the entity to.
entity - The entity to add.
isHandled - True if another mod has already handled the event.
Returns:
Return true if the entity was added, false otherwise.

overrideSpawnParticle

net.minecraft.client.particle.EntityFX overrideSpawnParticle(java.lang.String name,
                                                             net.minecraft.world.World world,
                                                             double x,
                                                             double y,
                                                             double z,
                                                             double p1,
                                                             double p2,
                                                             double p3,
                                                             net.minecraft.client.particle.EntityFX currParticle)
Spawns a particle into thw world.

Parameters:
name - The name of the particle to spawn.
world - The world to spawn in.
x - The x-location to spawn at.
y - The y-location to spawn at.
z - The z-location to spawn at.
p1 - Parameter 1
p2 - Parameter 1
p3 - Parameter 1
currParticle - The particle that the previous mod generated. Set to null if no mod has generated an particle
Returns:
A generated particle, or param currParticle to disable behavior

overrideContainerOpen

boolean overrideContainerOpen(net.minecraft.client.entity.EntityClientPlayerMP player,
                              java.lang.Class containerClass,
                              OverrideEventHandler.ContainerOpenedEventArgs e)
~WIP~ Called to allow a mod to display a gui for a custom container

Parameters:
player - The player accessing the container
containerClass - Class of container being accessed
Returns:
Return true if container has been handled