Package io.papermc.paper.entity
Interface Frictional
- All Known Subinterfaces:
AbstractHorse
,AbstractSkeleton
,AbstractVillager
,Ageable
,Allay
,Ambient
,Animals
,Armadillo
,ArmorStand
,Axolotl
,Bat
,Bee
,Blaze
,Bogged
,Breedable
,Breeze
,Camel
,Cat
,CaveSpider
,ChestedHorse
,Chicken
,Cod
,CollarColorable
,ComplexLivingEntity
,Cow
,Creature
,Creeper
,Dolphin
,Donkey
,Drowned
,ElderGuardian
,EnderDragon
,Enderman
,Endermite
,Enemy
,Evoker
,Fish
,Flying
,Fox
,Frog
,Ghast
,Giant
,GlowSquid
,Goat
,Golem
,Guardian
,Hoglin
,Horse
,HumanEntity
,Husk
,Illager
,Illusioner
,IronGolem
,Item
,LivingEntity
,Llama
,MagmaCube
,Mob
,Monster
,Mule
,MushroomCow
,NPC
,Ocelot
,Panda
,Parrot
,Phantom
,Pig
,Piglin
,PiglinAbstract
,PiglinBrute
,PigZombie
,Pillager
,Player
,PolarBear
,PufferFish
,Rabbit
,Raider
,RangedEntity
,Ravager
,Salmon
,SchoolableFish
,Sheep
,Shulker
,Silverfish
,Skeleton
,SkeletonHorse
,Slime
,Sniffer
,Snowman
,Spellcaster
,Spider
,Squid
,Steerable
,Stray
,Strider
,Tadpole
,Tameable
,TraderLlama
,TropicalFish
,Turtle
,Vex
,Villager
,Vindicator
,WanderingTrader
,Warden
,WaterMob
,Witch
,Wither
,WitherSkeleton
,Wolf
,Zoglin
,Zombie
,ZombieHorse
,ZombieVillager
Represents an
Entity
that can experience friction with the air and ground.-
Method Summary
Modifier and TypeMethodDescriptionGets the friction state of this entity.void
setFrictionState
(TriState state) Sets the friction state of this entity.
-
Method Details
-
getFrictionState
TriState getFrictionState()Gets the friction state of this entity. When set toTriState.TRUE
, the entity will always experience friction. When set toTriState.FALSE
, the entity will never experience friction. When set toTriState.NOT_SET
, the entity will fall back to Minecraft's default behaviour.- Returns:
- the entity's friction state
-
setFrictionState
Sets the friction state of this entity. When set toTriState.TRUE
, the entity will always experience friction. When set toTriState.FALSE
, the entity will never experience friction. When set toTriState.NOT_SET
, the entity will fall back to Minecraft's default behaviour.Please note that changing this value will do nothing for a player.
- Parameters:
state
- the new friction state to set for the entity
-