public class TridentFishHook extends TridentProjectile implements FishHook
source
airTicks, boundingBox, counter, displayName, executor, fallDistance, fireTicks, godMode, HANDLER, height, id, loc, nameVisible, onGround, passenger, portalCooldown, silent, ticksExisted, uniqueId, velocity, width
Constructor and Description |
---|
TridentFishHook(UUID uuid,
Position spawnPosition,
ProjectileLauncher projectileLauncher) |
Modifier and Type | Method and Description |
---|---|
void |
applyProperties(EntityProperties properties)
Sets the properties of this entity to the specified properties
|
float |
biteChance()
The chance that a fish will be caught on the inject
|
protected void |
hit()
Performed when the projectile hits something
|
void |
setBiteChance(float chance)
Sets the chance the fish will bite the inject
|
EntityType |
type()
Gets the type of entity
|
doHit, doTick, isNameVisible, launcher, setLauncher
asNbt, boundingBox, displayName, doEncodeMeta, doLoad, doRemove, eject, encodeMetadata, entityId, isSilent, load, onGround, passenger, position, remove, setDisplayName, setOnGround, setPassenger, setPosition, setSize, setVelocity, spawn, teleport, teleport, teleport, tick, uniqueId, velocity, withinRange, world
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doHit, launcher, setLauncher
boundingBox, displayName, eject, entityId, isNameVisible, isSilent, onGround, passenger, position, remove, setDisplayName, setPassenger, setSize, setVelocity, teleport, teleport, teleport, uniqueId, velocity, withinRange, world
public TridentFishHook(UUID uuid, Position spawnPosition, ProjectileLauncher projectileLauncher)
public void applyProperties(EntityProperties properties)
Entity
applyProperties
in interface Entity
applyProperties
in class TridentProjectile
properties
- the properties to setprotected void hit()
TridentProjectile
hit
in class TridentProjectile
public float biteChance()
FishHook
Works only in water
biteChance
in interface FishHook
public void setBiteChance(float chance)
FishHook
setBiteChance
in interface FishHook
chance
- the chance the fish will bite the injectpublic EntityType type()
Entity
type
in interface Entity
type
in class TridentEntity
Copyright © 2016. All rights reserved.