public RecipeMap(String unlocalizedName, int minInputs, int maxInputs, int minOutputs, int maxOutputs, int minFluidInputs, int maxFluidInputs, int minFluidOutputs, int maxFluidOutputs, int amperage, R defaultRecipe) { this.unlocalizedName = unlocalizedName; this.amperage = amperage; this.slotOverlays = new TByteObjectHashMap<>(); this.progressBarTexture = GuiTextures.PROGRESS_BAR_ARROW; this.moveType = MoveType.HORIZONTAL; this.minInputs = minInputs; this.minFluidInputs = minFluidInputs; this.minOutputs = minOutputs; this.minFluidOutputs = minFluidOutputs; this.maxInputs = maxInputs; this.maxFluidInputs = maxFluidInputs; this.maxOutputs = maxOutputs; this.maxFluidOutputs = maxFluidOutputs; defaultRecipe.setRecipeMap(this); this.recipeBuilderSample = defaultRecipe; RECIPE_MAPS.add(this); }
@Override public IndexGeneratorImpl clone() { final TByteObjectHashMap<IntGenerator> newMap = new TByteObjectHashMap<>(generators.size()); generators.forEachEntry( new TByteObjectProcedure<IntGenerator>() { @Override public boolean execute(byte a, IntGenerator b) { newMap.put(a, b.clone()); return true; } } ); /*for (Map.Entry<Byte, IntGenerator> entry : generators.entrySet()) newMap.put(entry.getKey(), entry.getValue().clone()); */ return new IndexGeneratorImpl(newMap); } }
Tensor c; DummiesContainer dummies[] = new DummiesContainer[t.size()]; TByteObjectHashMap<MaxType> maxTypeCounts = new TByteObjectHashMap<>(); for (int i = oldData.length - 1; i >= 0; --i) { c = optimizeDummies(oldData[i]);