Class FishingHookMeta
java.lang.Object
net.minestom.server.entity.metadata.EntityMeta
net.minestom.server.entity.metadata.other.FishingHookMeta
- All Implemented Interfaces:
ObjectDataProvider
-
Field Summary
Fields inherited from class net.minestom.server.entity.metadata.EntityMeta
metadata
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable Entity
int
int
@Nullable Entity
boolean
boolean
void
setCatchable
(boolean value) void
setHookedEntity
(@Nullable Entity value) void
setHookedEntityId
(int value) void
setOwnerEntity
(@Nullable Entity value) Methods inherited from class net.minestom.server.entity.metadata.EntityMeta
consumeEntity, getAirTicks, getCustomName, getPose, getTickFrozen, isCustomNameVisible, isFlyingWithElytra, isHasGlowingEffect, isHasNoGravity, isInvisible, isOnFire, isSilent, isSneaking, isSprinting, isSwimming, setAirTicks, setCustomName, setCustomNameVisible, setFlyingWithElytra, setHasGlowingEffect, setHasNoGravity, setInvisible, setNotifyAboutChanges, setOnFire, setPose, setSilent, setSneaking, setSprinting, setSwimming, setTickFrozen
-
Constructor Details
-
FishingHookMeta
-
-
Method Details
-
getHookedEntityId
public int getHookedEntityId() -
setHookedEntityId
@Internal public void setHookedEntityId(int value) -
getHookedEntity
-
setHookedEntity
-
isCatchable
public boolean isCatchable() -
setCatchable
public void setCatchable(boolean value) -
getOwnerEntity
-
setOwnerEntity
-
getObjectData
public int getObjectData()- Specified by:
getObjectData
in interfaceObjectDataProvider
-
requiresVelocityPacketAtSpawn
public boolean requiresVelocityPacketAtSpawn()- Specified by:
requiresVelocityPacketAtSpawn
in interfaceObjectDataProvider
-