Class BobberComponent
java.lang.Object
com.mrbysco.gonefishing.component.BobberComponent
- All Implemented Interfaces:
Component<EntityStore>, Cloneable
-
Field Summary
Fields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanclone()intintstatic ComponentType<EntityStore, BobberComponent> intvoidsetBobberAge(int bobberAge) voidsetCanCatch(boolean canCatch) voidsetCatchTimer(int catchTimer) voidvoidsetTimeUntilCatch(int timeUntilCatch) Methods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Component
cloneSerializable
-
Constructor Details
-
BobberComponent
public BobberComponent()
-
-
Method Details
-
getComponentType
-
getBobberAge
public int getBobberAge() -
setBobberAge
public void setBobberAge(int bobberAge) -
setCanCatch
public void setCanCatch(boolean canCatch) -
setCatchTimer
public void setCatchTimer(int catchTimer) -
getTimeUntilCatch
public int getTimeUntilCatch() -
setTimeUntilCatch
public void setTimeUntilCatch(int timeUntilCatch) -
setRandomTimeUntilCatch
public void setRandomTimeUntilCatch() -
getCatchTimer
public int getCatchTimer() -
canCatchFish
public boolean canCatchFish() -
clone
- Specified by:
clonein interfaceComponent<EntityStore>- Overrides:
clonein classObject
-