cpw.mods.fml.common.gameevent.TickEvent.ClientTickEvent Java Examples

The following examples show how to use cpw.mods.fml.common.gameevent.TickEvent.ClientTickEvent. 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: TankSynchroniser.java    From EnderStorage with MIT License 5 votes vote down vote up
@SubscribeEvent
public void tickEnd(ClientTickEvent event)
{
    if(event.phase == Phase.END)
        if(ClientUtils.inWorld())
            clientState.update();
}
 
Example #2
Source File: MovementScheduler.java    From Framez with GNU General Public License v3.0 5 votes vote down vote up
@SubscribeEvent
public void onClientTick(ClientTickEvent event) {

    if (Framez.proxy.isGamePaused())
        return;

    tick(Framez.proxy.getWorld(), event.phase);
}
 
Example #3
Source File: CraftingGridKeyHandler.java    From Translocators with MIT License 5 votes vote down vote up
@SubscribeEvent
@SideOnly(Side.CLIENT)
public void tick(ClientTickEvent event) {
    if(event.phase != Phase.END)
        return;

    boolean pressed = getIsKeyPressed();
    if(pressed != wasPressed) {
        wasPressed = pressed;
        if(pressed)
            onKeyPressed();
    }
}
 
Example #4
Source File: ClientTickHandler.java    From SimplyJetpacks with MIT License 5 votes vote down vote up
@SubscribeEvent
public void onClientTick(ClientTickEvent evt) {
    if (evt.phase == Phase.START) {
        tickStart();
    } else {
        tickEnd();
    }
}
 
Example #5
Source File: WRAddonEventHandler.java    From WirelessRedstone with MIT License 5 votes vote down vote up
@SubscribeEvent
public void clientTick(ClientTickEvent event) {
    if(ClientUtils.inWorld()) {
        if (event.phase == Phase.START)
            TriangTexManager.processAllTextures();
        else
            RedstoneEtherAddons.client().tick();
    }
}
 
Example #6
Source File: TerminalManagerClient.java    From OpenPeripheral-Addons with MIT License 5 votes vote down vote up
@SubscribeEvent
public void onClientTick(ClientTickEvent evt) {
	if (evt.phase == Phase.END) {
		final EntityPlayer player = Minecraft.getMinecraft().thePlayer;
		terminalGuid = player != null? TerminalIdAccess.instance.getIdFrom(player) : Optional.<Long> absent();
	}
}
 
Example #7
Source File: KeyHandler.java    From SimplyJetpacks with MIT License 4 votes vote down vote up
@SubscribeEvent
public void onClientTick(ClientTickEvent evt) {
    if (evt.phase == Phase.START) {
        tickStart();
    }
}
 
Example #8
Source File: WRCoreEventHandler.java    From WirelessRedstone with MIT License 4 votes vote down vote up
@SubscribeEvent
public void clientTick(ClientTickEvent event) {
    if(event.phase == Phase.START)
        WirelessBolt.update(WirelessBolt.clientboltlist);
}