Interface Frostbite
- All Superinterfaces:
Entity, HoverEventSource<HoverEvent.ShowEntity>, LivingEntity, Mob, SchedulerSource, Sound.Emitter, Sound.Source.Provider, Zombie
A frostbite (
minecraft:frostbite): the zombie of the cold, tougher and slower than the
zombie. It chills what it hits, and throws ice balls at what it cannot reach while it holds one.
Under water, it turns into a zombie.- Since:
- 0.1.0
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif this frostbite holds an ice ball.booleanisRanged()Returnstruewhile this frostbite throws ice balls rather than using its fists.voidsetHoldsIceBall(boolean holdsIceBall) Gives this frostbite an ice ball to throw, or takes it away.voidsetRangedAttackUncertainty(float uncertainty) Sets how much the throws of this frostbite stray, in place of what the difficulty gives.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
soundSourceMethods inherited from interface Zombie
canBreakDoors, isBaby, isFreezeConverting, isLeader, isUnderWaterConverting, reinforcementChance, setBaby, setCanBreakDoors, setFreezingTime, setInWaterTime, setReinforcementChance
-
Method Details
-
holdsIceBall
boolean holdsIceBall()Returnstrueif this frostbite holds an ice ball.: it then throws it, again and again, at a target it cannot hit with its fists- Returns:
trueif this frostbite holds an ice ball- Since:
- 0.1.0
-
setHoldsIceBall
void setHoldsIceBall(boolean holdsIceBall) Gives this frostbite an ice ball to throw, or takes it away.- Parameters:
holdsIceBall-trueto give it one- Since:
- 0.1.0
-
isRanged
boolean isRanged()Returnstruewhile this frostbite throws ice balls rather than using its fists.- Returns:
truewhile this frostbite throws ice balls rather than using its fists- Since:
- 0.1.0
-
setRangedAttackUncertainty
void setRangedAttackUncertainty(float uncertainty) Sets how much the throws of this frostbite stray, in place of what the difficulty gives.- Parameters:
uncertainty-0for throws that go straight at the target, a negative value to follow the difficulty again- Since:
- 0.1.0
-