EntityJumpHelper .java

net.minecraft.entity.ai.EntityJumpHelper (class, 29 lines): members: doJump, setJumping, isJumping, entity. imports: EntityLiving.

net.minecraft.entity.aiclass29 linescommon549 B

API Surface (2)

void setJumping()
void doJump()

Fields & Constants (2)

entity
isJumping

Code Graph: Dependencies (1)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

EntityJumpHelper.java29 lines · MCP 1.8.9 · verbatimOriginal ↗
1
package net.minecraft.entity.ai;
2
3
import net.minecraft.entity.EntityLiving;
4
5
public class EntityJumpHelper
6
{
7
    private EntityLiving entity;
8
    protected boolean isJumping;
9
10
    public EntityJumpHelper(EntityLiving entityIn)
11
    {
12
        this.entity = entityIn;
13
    }
14
15
    public void setJumping()
16
    {
17
        this.isJumping = true;
18
    }
19
20
    /**
21
     * Called to actually make the entity jump if isJumping is true.
22
     */
23
    public void doJump()
24
    {
25
        this.entity.setJumping(this.isJumping);
26
        this.isJumping = false;
27
    }
28
}
29

Deobfuscated MCP 1.8.9 source of EntityJumpHelper from Marcelektro/MavenMCP-1.8.9 (net/minecraft/entity/ai/EntityJumpHelper.java), stored verbatim.