Skip to content

Commit

Permalink
protocol/item_stack.go: Add all ItemStackResponseStatus constants (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
smell-of-curry authored Aug 4, 2024
1 parent 01d3093 commit ea0466e
Showing 1 changed file with 66 additions and 1 deletion.
67 changes: 66 additions & 1 deletion minecraft/protocol/item_stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,72 @@ func lookupStackRequestAction(id uint8, x *StackRequestAction) bool {
const (
ItemStackResponseStatusOK = iota
ItemStackResponseStatusError
// There are lots more of these statuses for specific errors, but they don't seem to be very useful.
ItemStackResponseStatusInvalidRequestActionType
ItemStackResponseStatusActionRequestNotAllowed
ItemStackResponseStatusScreenHandlerEndRequestFailed
ItemStackResponseStatusItemRequestActionHandlerCommitFailed
ItemStackResponseStatusInvalidRequestCraftActionType
ItemStackResponseStatusInvalidCraftRequest
ItemStackResponseStatusInvalidCraftRequestScreen
ItemStackResponseStatusInvalidCraftResult
ItemStackResponseStatusInvalidCraftResultIndex
ItemStackResponseStatusInvalidCraftResultItem
ItemStackResponseStatusInvalidItemNetId
ItemStackResponseStatusMissingCreatedOutputContainer
ItemStackResponseStatusFailedToSetCreatedItemOutputSlot
ItemStackResponseStatusRequestAlreadyInProgress
ItemStackResponseStatusFailedToInitSparseContainer
ItemStackResponseStatusResultTransferFailed
ItemStackResponseStatusExpectedItemSlotNotFullyConsumed
ItemStackResponseStatusExpectedAnywhereItemNotFullyConsumed
ItemStackResponseStatusItemAlreadyConsumedFromSlot
ItemStackResponseStatusConsumedTooMuchFromSlot
ItemStackResponseStatusMismatchSlotExpectedConsumedItem
ItemStackResponseStatusMismatchSlotExpectedConsumedItemNetIdVariant
ItemStackResponseStatusFailedToMatchExpectedSlotConsumedItem
ItemStackResponseStatusFailedToMatchExpectedAllowedAnywhereConsumedItem
ItemStackResponseStatusConsumedItemOutOfAllowedSlotRange
ItemStackResponseStatusConsumedItemNotAllowed
ItemStackResponseStatusPlayerNotInCreativeMode
ItemStackResponseStatusInvalidExperimentalRecipeRequest
ItemStackResponseStatusFailedToCraftCreative
ItemStackResponseStatusFailedToGetLevelRecipe
ItemStackResponseStatusFailedToFindRecipeByNetId
ItemStackResponseStatusMismatchedCraftingSize
ItemStackResponseStatusMissingInputSparseContainer
ItemStackResponseStatusMismatchedRecipeForInputGridItems
ItemStackResponseStatusEmptyCraftResults
ItemStackResponseStatusFailedToEnchant
ItemStackResponseStatusMissingInputItem
ItemStackResponseStatusInsufficientPlayerLevelToEnchant
ItemStackResponseStatusMissingMaterialItem
ItemStackResponseStatusMissingActor
ItemStackResponseStatusUnknownPrimaryEffect
ItemStackResponseStatusPrimaryEffectOutOfRange
ItemStackResponseStatusPrimaryEffectUnavailable
ItemStackResponseStatusSecondaryEffectOutOfRange
ItemStackResponseStatusSecondaryEffectUnavailable
ItemStackResponseStatusDstContainerEqualToCreatedOutputContainer
ItemStackResponseStatusDstContainerAndSlotEqualToSrcContainerAndSlot
ItemStackResponseStatusFailedToValidateSrcSlot
ItemStackResponseStatusFailedToValidateDstSlot
ItemStackResponseStatusInvalidAdjustedAmount
ItemStackResponseStatusInvalidItemSetType
ItemStackResponseStatusInvalidTransferAmount
ItemStackResponseStatusCannotSwapItem
ItemStackResponseStatusCannotPlaceItem
ItemStackResponseStatusUnhandledItemSetType
ItemStackResponseStatusInvalidRemovedAmount
ItemStackResponseStatusInvalidRegion
ItemStackResponseStatusCannotDropItem
ItemStackResponseStatusCannotDestroyItem
ItemStackResponseStatusInvalidSourceContainer
ItemStackResponseStatusItemNotConsumed
ItemStackResponseStatusInvalidNumCrafts
ItemStackResponseStatusInvalidCraftResultStackSize
ItemStackResponseStatusCannotRemoveItem
ItemStackResponseStatusCannotConsumeItem
ItemStackResponseStatusScreenStackError
)

// ItemStackResponse is a response to an individual ItemStackRequest.
Expand Down

0 comments on commit ea0466e

Please sign in to comment.