Friction API

This commit is contained in:
Noah van der Aa
2021-09-15 20:40:51 +02:00
parent 19743ae5dc
commit 0232bdcc50
4 changed files with 38 additions and 3 deletions

View File

@@ -8,7 +8,7 @@ import org.jetbrains.annotations.Nullable;
/**
* Represents a dropped item.
*/
public interface Item extends Entity {
public interface Item extends Entity, io.papermc.paper.entity.Frictional { // Paper
/**
* Gets the item stack associated with this item drop.

View File

@@ -27,7 +27,7 @@ import org.jetbrains.annotations.Nullable;
/**
* Represents a living entity, such as a monster or player
*/
public interface LivingEntity extends Attributable, Damageable, ProjectileSource {
public interface LivingEntity extends Attributable, Damageable, ProjectileSource, io.papermc.paper.entity.Frictional { // Paper
/**
* Gets the height of the living entity's eyes above its Location.

View File

@@ -11,7 +11,7 @@ import org.jetbrains.annotations.Nullable;
/**
* Represents a minecart entity.
*/
public interface Minecart extends Vehicle {
public interface Minecart extends Vehicle, io.papermc.paper.entity.Frictional { // Paper
/**
* Sets a minecart's damage.