public class ProcessingBenchState extendsBenchStateimplementsTickableBlockState,ItemContainerBlockState,DestroyableBlockState,MarkerBlockState,PlacedByBlockState
Class ProcessingBenchState. Provides processingbenchstate functionality for the Hytale server.
java.lang.Object > BenchState > ProcessingBenchState
Field Summary
marker
Field marker.
processingBench
Field processingBench.
inputContainer
Field inputContainer.
fuelContainer
Field fuelContainer.
outputContainer
Field outputContainer.
combinedItemContainer
Field combinedItemContainer.
inputProgress
Field inputProgress.
fuelTime
Field fuelTime.
lastConsumedFuelTotal
Field lastConsumedFuelTotal.
nextExtra
Field nextExtra.
recipeId
Field recipeId.
recipe
Field recipe.
active
Field active.
itemStacks
Field itemStacks.
world
Field world.
store
Field store.
itemEntityHolders
Field itemEntityHolders.
remainder
Field remainder.
tierLevel
Field tierLevel.
input
Field input.
inputSlotsCount
Field inputSlotsCount.
inputSlot
Field inputSlot.
resourceTypeId
Field resourceTypeId.
shouldFilterValidIngredients
Field shouldFilterValidIngredients.
validIngredients
Field validIngredients.
recipes
Field recipes.
inputMaterials
Field inputMaterials.
benchFuel
Field benchFuel.
fuelCapacity
Field fuelCapacity.
fuel
Field fuel.
outputSlotsCount
Field outputSlotsCount.
entityStore
Field entityStore.
blockType
Field blockType.
currentState
Field currentState.
result
Field result.
allowNoInputProcessing
Field allowNoInputProcessing.
fuelSlots
Field fuelSlots.
hasFuelSlots
Field hasFuelSlots.
itemInSlot
Field itemInSlot.
fuelSlot
Field fuelSlot.
resourceQuantity
Field resourceQuantity.
slot
Field slot.
fuelQuality
Field fuelQuality.
transaction
Field transaction.
extra
Field extra.
extraItemStacks
Field extraItemStacks.
addTransaction
Field addTransaction.
remainderItems
Field remainderItems.
craftingTimeReductionModifier
Field craftingTimeReductionModifier.
progressPercent
Field progressPercent.
remainderItems2
Field remainderItems2.
slots
Field slots.
slot2
Field slot2.
transaction2
Field transaction2.
addTransaction2
Field addTransaction2.
remainder2
Field remainder2.
itemEntityHolders2
Field itemEntityHolders2.
transaction3
Field transaction3.
addTransaction3
Field addTransaction3.
remainder3
Field remainder3.
itemEntityHolders3
Field itemEntityHolders3.
levelData
Field levelData.
rotation
Field rotation.
frontDir
Field frontDir.
hitboxAsset
Field hitboxAsset.
depth
Field depth.
frontOffset
Field frontOffset.
random
Field random.
velocityX
Field velocityX.
velocityZ
Field velocityZ.
holder
Field holder.
fuelPercent
Field fuelPercent.
dropPosition
Field dropPosition.
matching
Field matching.
itemId
Field itemId.
materialQuantity
Field materialQuantity.
metadata
Field metadata.
material
Field material.
i
Field i.
out
Field out.
recipe2
Field recipe2.
fuelDropItemId
Field fuelDropItemId.
item
Field item.
quantity
Field quantity.
playerComponent
Field playerComponent.
transformComponent
Field transformComponent.
transformPacket
Field transformPacket.
pos
Field pos.
Method Detail
ProcessingBenchState
public
ProcessingBenchState
()
Method ProcessingBenchState.
setupSlots
void
setupSlots
()
Method setupSlots.
ResourceFilter
new
ResourceFilter
(new ResourceQuantity(resourceTypeId, 1)
Method ResourceFilter.
- Parameters:
newResourceQuantity(resourceTypeId11
if
else
if
(shouldFilterValidIngredients)
Method if.
- Parameters:
shouldFilterValidIngredientsshouldFilterValidIngredients
tick
void
tick
(final float dt, final int index, final ArchetypeChunk archetypeChunk, @Nonnull final Store store, final CommandBuffer commandBuffer)
Method tick.
- Parameters:
final floatdtfinal intindexfinal ArchetypeChunkarchetypeChunk@Nonnull final Storestorefinal CommandBuffercommandBuffer
getCraftingTimeReductionModifier
float
getCraftingTimeReductionModifier
()
Method getCraftingTimeReductionModifier.
ejectItems
Holder[]
ejectItems
(@Nonnull final ComponentAccessor accessor, @Nonnull final List itemStacks)
Method ejectItems.
- Parameters:
@Nonnull final ComponentAccessoraccessor@Nonnull final ListitemStacks
sendProgress
void
sendProgress
(final float progress)
Method sendProgress.
- Parameters:
final floatprogress
sendProcessingSlots
void
sendProcessingSlots
()
Method sendProcessingSlots.
sendProcessingFuelSlots
void
sendProcessingFuelSlots
()
Method sendProcessingFuelSlots.
isActive
boolean
isActive
()
Method isActive.
setActive
boolean
setActive
(final boolean active)
Method setActive.
- Parameters:
final booleanactive
updateFuelValues
void
updateFuelValues
()
Method updateFuelValues.
onDestroy
void
onDestroy
()
Method onDestroy.
checkForRecipeUpdate
void
checkForRecipeUpdate
()
Method checkForRecipeUpdate.
updateRecipe
void
updateRecipe
()
Method updateRecipe.
clearRecipe
void
clearRecipe
()
Method clearRecipe.
dropFuelItems
void
dropFuelItems
(@Nonnull final List itemStacks)
Method dropFuelItems.
- Parameters:
@Nonnull final ListitemStacks
ItemStack
new
ItemStack
(fuelDropItemId, quantity)
Method ItemStack.
- Parameters:
fuelDropItemIdfuelDropItemIdquantityquantity
getWindows
ProcessingBenchWindow>
getWindows
()
Method getWindows.
getInputProgress
float
getInputProgress
()
Method getInputProgress.
onItemChange
void
onItemChange
(final ItemContainer.ItemContainerChangeEvent event)
Method onItemChange.
- Parameters:
final ItemContainer.ItemContainerChangeEventevent
setBlockInteractionState
void
setBlockInteractionState
(@Nonnull final String state, @Nonnull final BlockType blockType)
Method setBlockInteractionState.
- Parameters:
@Nonnull final Stringstate@Nonnull final BlockTypeblockType
setMarker
void
setMarker
(final WorldMapManager.MarkerReference marker)
Method setMarker.
- Parameters:
final WorldMapManager.MarkerReferencemarker
placedBy
void
placedBy
(@Nonnull final Ref playerRef, @Nonnull final String blockTypeKey, @Nonnull final BlockState blockState, @Nonnull final ComponentAccessor componentAccessor)
Method placedBy.
- Parameters:
@Nonnull final RefplayerRef@Nonnull final StringblockTypeKey@Nonnull final BlockStateblockState@Nonnull final ComponentAccessorcomponentAccessor
MapMarker
new
MapMarker
(this.processingBench.getIconId()
Method MapMarker.
- Parameters:
this.processingBench.getIconId(this.processingBench.getIconId(
playSound
void
playSound
(@Nonnull final World world, final int soundEventIndex, @Nonnull final ComponentAccessor componentAccessor)
Method playSound.
- Parameters:
@Nonnull final Worldworldfinal intsoundEventIndex@Nonnull final ComponentAccessorcomponentAccessor
onTierLevelChange
void
onTierLevelChange
()
Method onTierLevelChange.