MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / updateFallState

Method updateFallState

src/main/java/net/minecraft/entity/Entity.java:1053–1075  ·  view source on GitHub ↗
(double y, boolean onGroundIn, Block blockIn, BlockPos pos)

Source from the content-addressed store, hash-verified

1051 }
1052
1053 protected void updateFallState(double y, boolean onGroundIn, Block blockIn, BlockPos pos)
1054 {
1055 if (onGroundIn)
1056 {
1057 if (this.fallDistance > 0.0F)
1058 {
1059 if (blockIn != null)
1060 {
1061 blockIn.onFallenUpon(this.worldObj, pos, this, this.fallDistance);
1062 }
1063 else
1064 {
1065 this.fall(this.fallDistance, 1.0F);
1066 }
1067
1068 this.fallDistance = 0.0F;
1069 }
1070 }
1071 else if (y < 0.0D)
1072 {
1073 this.fallDistance = (float)((double)this.fallDistance - y);
1074 }
1075 }
1076
1077 /**
1078 * Returns the collision bounding box for this entity

Callers 1

moveEntityMethod · 0.95

Calls 2

fallMethod · 0.95
onFallenUponMethod · 0.45

Tested by

no test coverage detected