classpublicPriority 3
ProcessingBenchState
com.hypixel.hytale.builtin.crafting.state.ProcessingBenchState
extends BenchState
implements TickableBlockState, ItemContainerBlockState, DestroyableBlockState, MarkerBlockState, PlacedByBlockState
14
Methods
14
Public Methods
13
Fields
1
Constructors
Constants
Codec<ProcessingBenchState>CODEC= BuilderCodec.builder(ProcessingBenchState.class, ProcessingBenchState::new, BenchState.CODEC)
...
floatEJECT_SPREAD_VELOCITY= 1.0F
floatEJECT_VELOCITY= 2.0F
floatEJECT_VERTICAL_VELOCITY= 3.25F
booleanEXACT_RESOURCE_AMOUNTS= true
HytaleLoggerLOGGER= HytaleLogger.forEnclosingClass()
StringPROCESSING= "Processing"
StringPROCESS_COMPLETED= "ProcessCompleted"
Constructors
public
ProcessingBenchState()Methods
Public Methods (14)
public
void dropFuelItems(List<ItemStack> itemStacks)public
float getInputProgress()public
CombinedItemContainer getItemContainer()public
CraftingRecipe getRecipe()@Nullable
public
Map<UUID, ProcessingBenchWindow> getWindows()@Nonnull
public
boolean initialize(BlockType blockType)@Override
public
boolean isActive()public
void onDestroy()@Override
public
void onItemChange(ItemContainer.ItemContainerChangeEvent event)public
boolean setActive(boolean active)public
void setBlockInteractionState(String state, BlockType blockType)public
void setMarker(WorldMapManager.MarkerReference marker)@Override
public
void tick(float dt, int index, ArchetypeChunk<ChunkStore> archetypeChunk, Store<ChunkStore> store, CommandBuffer<ChunkStore> commandBuffer)@Override
public
void updateFuelValues()Fields
Protected Fields (1)
protected
WorldMapManager.MarkerReference markerPrivate/Package Fields (12)
private
boolean activeprivate
CombinedItemContainer combinedItemContainerprivate
ItemContainer fuelContainerprivate
float fuelTimeprivate
ItemContainer inputContainerprivate
float inputProgressprivate
int lastConsumedFuelTotalprivate
int nextExtraprivate
ItemContainer outputContainerprivate
ProcessingBench processingBenchprivate
CraftingRecipe recipeprivate
String recipeId