Class CorporeaRequestImpl
java.lang.Object
vazkii.botania.common.impl.corporea.CorporeaRequestImpl
- All Implemented Interfaces:
CorporeaRequest
-
Constructor Summary
ConstructorsConstructorDescriptionCorporeaRequestImpl(CorporeaRequestMatcher matcher, int stillNeeded, @Nullable net.minecraft.world.entity.LivingEntity entity) -
Method Summary
Modifier and TypeMethodDescription@Nullable net.minecraft.world.entity.LivingEntityintintgetFound()intvoidtrackExtracted(int count) voidtrackFound(int count) voidtrackSatisfied(int count) Inform the request thatcountitems have been satisfied, updating the result ofCorporeaRequest.getStillNeeded().
-
Constructor Details
-
CorporeaRequestImpl
public CorporeaRequestImpl(CorporeaRequestMatcher matcher, int stillNeeded, @Nullable @Nullable net.minecraft.world.entity.LivingEntity entity)
-
-
Method Details
-
getEntity
@Nullable public @Nullable net.minecraft.world.entity.LivingEntity getEntity()- Specified by:
getEntityin interfaceCorporeaRequest- Returns:
- The entity that initiated this requestr, if available.
-
getMatcher
- Specified by:
getMatcherin interfaceCorporeaRequest
-
getStillNeeded
public int getStillNeeded()- Specified by:
getStillNeededin interfaceCorporeaRequest- Returns:
- The amount still wanted by the request, -1 if the request wants everything matched by
CorporeaRequest.getMatcher().
-
getFound
public int getFound()- Specified by:
getFoundin interfaceCorporeaRequest
-
getExtracted
public int getExtracted()- Specified by:
getExtractedin interfaceCorporeaRequest
-
trackSatisfied
public void trackSatisfied(int count) Description copied from interface:CorporeaRequestInform the request thatcountitems have been satisfied, updating the result ofCorporeaRequest.getStillNeeded().- Specified by:
trackSatisfiedin interfaceCorporeaRequest
-
trackFound
public void trackFound(int count) - Specified by:
trackFoundin interfaceCorporeaRequest
-
trackExtracted
public void trackExtracted(int count) - Specified by:
trackExtractedin interfaceCorporeaRequest
-