Interface Bat
- All Superinterfaces:
Entity, HoverEventSource<HoverEvent.ShowEntity>, LivingEntity, Mob, SchedulerSource, Sound.Emitter, Sound.Source.Provider
A bat (
minecraft:bat): it flutters around in the dark, and hangs upside down under a block
to rest until a player comes close.
Like every entity, change it from the region thread owning its chunk.
- Since:
- 0.1.0
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstruewhile this bat hangs under a block to rest.voidsetResting(boolean resting) Makes this bat hang under the block above it to rest, or fly off.Methods inherited from interface Entity
chunk, displayName, entityId, isRemoved, location, remove, server, teleport, teleport, teleport, type, uuid, worldMethods inherited from interface HoverEventSource
asHoverEvent, asHoverEventMethods inherited from interface LivingEntity
absorptionAmount, activeEffects, addEffect, armor, armorToughness, clearEffects, damage, effect, equipment, fireTicks, hasEffect, headYaw, heal, health, isAlive, isDead, kill, knockbackResistance, maxHealth, removeEffect, setAbsorptionAmount, setFireTicks, setHeadYaw, setHealthMethods inherited from interface Mob
attackDamage, behaviour, behaviours, definition, distanceSqTo, followRange, goals, hasLineOfSightTo, height, lookAt, lookAt, movementSpeed, navigateTo, navigation, nearestPlayer, onGround, playSound, setFollowRange, setMoveSpeed, setTarget, setVelocity, target, velocityX, velocityY, velocityZ, widthMethods inherited from interface SchedulerSource
execute, execute, executeDelayed, executeDelayed, isOwnedByCurrentThreadMethods inherited from interface Sound.Source.Provider
soundSource
-
Method Details
-
isResting
boolean isResting()Returnstruewhile this bat hangs under a block to rest.- Returns:
truewhile this bat hangs under a block to rest- Since:
- 0.1.0
-
setResting
void setResting(boolean resting) Makes this bat hang under the block above it to rest, or fly off.- Parameters:
resting-trueto make it rest- Since:
- 0.1.0
-