your current location:首页 > news>Eventtweaker official wiki translation [EVT] EventTweaker Minecraft Game

Eventtweaker official wiki translation [EVT] EventTweaker Minecraft Game

2024-12-10 17:51:56|Myriagame |source:minecraft skins

This tutorial is set by the author to use the CC by-NC protocol.

0. Write in front

The return of the missing population, write a tutorial, translate the EVTWIKI of Tang guy to prove that he is still alive

exist?ED not to make a defense?

Introduction to this module:

Added some events, strange events.

And some settings connected to the client.

There are also some small linkage of some modules ...

1. Clientchatvent (client chat incident)

Clientchatvent occurs when the client gets chat information.The incident could not be canceled.

Event class

 mods.eventtweaker.event.clientchatevent 

Improve (I don’t talk about the pilot EVENTS package)

 Events.onClientchat (Function (event as clientchatevent) {

//content

});

ZENGETERS

 getMessage ()

// Return a string, that is, return the corresponding chat content.

GetOriginalMessage ()

// Return a string, that is, the original information of the corresponding chat content.

Zensetters

 SetMessage (String Message)

// Change the content of the chat information and enter a string.

Pay attention to GlstateManager (graphic rendering status manager)!Not an event

It contains a series of methods to interact with the OpenGL status manager.These methods can be used to modify the rendering effect in the game.

kind

 mods.eventtweaker.glstateManager 

Zensetters

 enablelighting ()

disablelighting ()

// Enable or disable light.

enabletexture2d ()

disabletexture2d ()

// Enable or disable the plane material (the items after the disable will be displayed as solid color).

enablealpha ()

disablealpha ()

// Enable or disable transparency.

enablebled ()

disablebled ()

// Enable or disable mixed (for translucent effects).

EnableColorLogic ()

disableColorLogic ()

// Enable or disable color logic (for rendering to perform logical operations on the color, that is, fine -tuning the color display status).

EnableColorMaterial ()

disableColorMaterial ()

// Enable or disable the color material (that is, change the color according to the group).

EnableCull ()

disableCull ()

// Enable or disable and eliminate (ignore the invisible object surface).

enablefog ()

disablefog ()

// Enable or disable the fog.

enableDepth ()

disableDepth ()

// Enable or disable the effects of depth on rendering.

enablenormalize ()

disableenormalize ()

// Enable or disable the standardization (standardize the legal line vector to ensure that its length is 1).

enablepolygonoffset ()

disablepolygonoffset ()

// Enable or disable polygonal offset (polygon offset can be used to solve the problem of Z-buffer conflict).

RenderImage (String Str)

// Set texture pictures of the specified path.

CreateTessellator (Float X1, Float Y1, Float Z1, Float X2, Float Y2, Float Z2, Float X3, Float Y3, Float Z3, Float X4, Float Y4, Float Z4) // Enter the coordinates of four points and create a testellatorObjects (tools for drawing geometric graphics in MC).

draw ()

// Take the previous method and draw a TESSSLLLATOR object.

Translate (Float X, Float Y, Float Z)

// Enter three displacements and translate the rendering coordinate system.

Color (Float ColorRed, Float Colorgreen, Float Colorblue, Float Colorralpha)

// Enter the Float value of RGBA (RGB+Transparency) for setting the rendering color.

Rotate (Float Angle, Float X, Float Y, Float Z)

// Enter three rotation angles to rotate the rendering coordinate system.

Scale (Float X, Float Y, Float Z)

// Enter the three zoom level Float value for zoom rendering coordinate system.

Clearcolor (Float Red, Float Green, Float Blue, Float Alpha)

// Enter the Float value of RGBA (RGB+Transparency) to clear the specified rendering color.

Some of me are not particularly clear, I am not an OpenGL MODPACKER

3. Minecraft (game miscellaneous)

Including players, FPS, full -screen acquisition methods.With certain subsidiaries, this can be achieved: the lower the number of frames, the higher the attack damage

kind

 mods.eventtweaker.minecraft 

ZENGETERS

 getplayer ()

// Return a iPlayer to get client gamers.

getfps ()

// Return to an int to get the client's FPS.

isfullScreen ()

// Return to a BOOL to detect whether the client is full screen.

4. RenderGameoverlayEvent (game rendering event)

RenderGameOverLayEvent occurs when the content of the screen is rendered.The incident could not be canceled.

Event class

 Mods.eventtweaker.Event.RendergameOverLayEvent 

Call

events.onrendergameOverlay (function (event as renderegameOrerevent) {{{{{

//content

});

ZENGETERS

 GetpartialTicks ()

// Return a Float to get the local Tick of the game covering the rendering event.

5. Manachangeevent

When the Manachangeevent event occurred when the magic of magic blocks in the magic of plant magic.

This event is a sub -event of IEVENTCANCANCELABLE and IBLOCKEEVENT.

Event class

 Mods.eventtweaker.event.manachangeEvent 

Call

 Events.onManachange (Function (event as manachangeEvent) {

//content

});

ZENGETERS

 getmana ()

// Return to an int, the mana value of the block.

getworld ()

// Return to the world where the block is.

getposition ()

// Return to an iBlockpos, the location of the block.

getBlockState ()

// Return to an iBlockState, the state of the block.

getBlock ()

// Return a IBLOCK, the block itself

6. Netherportalevent

When the Netherportalevent event occurs when the installation of the door module is installed, the lower bound portal is activated (installing the casual port module will make the original lower door event invalid, so use this).

This event is a sub -event of IEVENTCANCANCELABLE and IWorldEvent.

Event class

 mods.eventtweaker.event.netherportalevent 

Call

 Events.onNetherportal

//content

});

ZENGETERS

 getworld ()

// Return a IWORLD, where the portal is located.

Isvalid ()

// Return to a BOOL, whether the portal is effective.

getWidth ()

// Return to an int, the width of the portal.

getheight ()

// Return to an int, the height of the portal.

Isusercreated ()

// Return to a BOOL, whether the portal is built by players.

isactivatedbyfire ()

// Return to a BOOL, whether the portal is activated by the flame.