mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-15 22:21:01 +01:00
added some API for entities
By: Tahg <tahgtahv@gmail.com>
This commit is contained in:
parent
cebf24179e
commit
b09f01d4f7
2 changed files with 8 additions and 27 deletions
27
paper-server/.gitignore
vendored
27
paper-server/.gitignore
vendored
|
@ -1,27 +0,0 @@
|
|||
# Eclipse stuff
|
||||
/.classpath
|
||||
/.project
|
||||
/.settings
|
||||
|
||||
# netbeans
|
||||
/nbproject
|
||||
|
||||
# we use maven!
|
||||
/build.xml
|
||||
|
||||
# maven
|
||||
/target
|
||||
|
||||
# vim
|
||||
.*.sw[a-p]
|
||||
|
||||
# various other potential build files
|
||||
/build
|
||||
/bin
|
||||
/dist
|
||||
/manifest.mf
|
||||
|
||||
/world
|
||||
|
||||
# Mac filesystem dust
|
||||
/.DS_Store
|
|
@ -238,4 +238,12 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
|
|||
getHandle().passenger.setPassengerOf(null);
|
||||
return true;
|
||||
}
|
||||
|
||||
public float getFallDistance() {
|
||||
return getHandle().fallDistance;
|
||||
}
|
||||
|
||||
public void setFallDistance(float distance) {
|
||||
getHandle().fallDistance = distance;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue