/** {@inheritDoc} */ public void putAll( TObjectIntMap<? extends K> map ){ map.forEachEntry( PUT_ALL_PROC ); }
public boolean forEachEntry( TObjectIntProcedure<? super K> procedure ) { synchronized( mutex ) { return m.forEachEntry( procedure ); } } public void transformValues( TIntFunction function ) {
/** {@inheritDoc} */ public void putAll( TObjectIntMap<? extends K> map ){ map.forEachEntry( PUT_ALL_PROC ); }
public boolean forEachEntry( TObjectIntProcedure<? super K> procedure ) { return m.forEachEntry( procedure ); }
public void summarize() { instanceCounts.forEachEntry((classe, count) -> { Registration registration = getRegistration(classe); String serializerName = registration.getSerializer().getClass().getSimpleName(); System.out.println(count + " " + classe.getSimpleName() + " " + serializerName); return true; }); }
private void createTextureAtlas(final Texture texture) { final Map<Name, Map<Name, SubtextureData>> textureAtlases = Maps.newHashMap(); final Vector2f texSize = new Vector2f(getRelativeTileSize(), getRelativeTileSize()); tileIndexes.forEachEntry((tileUri, index) -> { Vector2f coords = getTexCoords(index); SubtextureData subtextureData = new SubtextureData(texture, Rect2f.createFromMinAndSize(coords, texSize)); Map<Name, SubtextureData> textureAtlas = textureAtlases.get(tileUri.getModuleName()); if (textureAtlas == null) { textureAtlas = Maps.newHashMap(); textureAtlases.put(tileUri.getModuleName(), textureAtlas); } textureAtlas.put(tileUri.getResourceName(), subtextureData); return true; }); for (Map.Entry<Name, Map<Name, SubtextureData>> atlas : textureAtlases.entrySet()) { AtlasData data = new AtlasData(atlas.getValue()); Assets.generateAsset(new ResourceUrn(atlas.getKey(), new Name("terrain")), data, Atlas.class); } }
/** {@inheritDoc} */ public void putAll( TObjectIntMap<? extends K> map ){ map.forEachEntry( PUT_ALL_PROC ); }
@Override public boolean forEachEntry( TObjectIntProcedure<? super K> procedure ) { synchronized( mutex ) { return m.forEachEntry( procedure ); } } @Override
public boolean forEachEntry( TObjectIntProcedure<? super K> procedure ) { synchronized( mutex ) { return m.forEachEntry( procedure ); } } public void transformValues( TIntFunction function ) {
/** {@inheritDoc} */ @Override public void putAll( TObjectIntMap<? extends K> map ){ map.forEachEntry( PUT_ALL_PROC ); }
/** {@inheritDoc} */ @Override public void putAll( TObjectIntMap<? extends K> map ){ map.forEachEntry( PUT_ALL_PROC ); }
/** {@inheritDoc} */ public void putAll( TObjectIntMap<? extends K> map ){ map.forEachEntry( PUT_ALL_PROC ); }
@Override public boolean forEachEntry( TObjectIntProcedure<? super K> procedure ) { return m.forEachEntry( procedure ); }
public boolean forEachEntry( TObjectIntProcedure<? super K> procedure ) { return m.forEachEntry( procedure ); }
/** {@inheritDoc} */ public void putAll( TObjectIntMap<? extends K> map ){ map.forEachEntry( PUT_ALL_PROC ); }
public boolean forEachEntry( TObjectIntProcedure<? super K> procedure ) { synchronized( mutex ) { return m.forEachEntry( procedure ); } } public void transformValues( TIntFunction function ) {
public boolean forEachEntry( TObjectIntProcedure<K> procedure ) { synchronized( mutex ) { return m.forEachEntry( procedure ); } } public void transformValues( TIntFunction function ) {
/** * The output from this method can be sorted in a spreadsheet and formatted into a markdown table with * http://www.tablesgenerator.com/markdown_tables * for inclusion in Github issue or pull request comments. */ public void summarize() { instanceCounts.forEachEntry((classe, count) -> { Registration registration = getRegistration(classe); String serializerName = registration.getSerializer().getClass().getSimpleName(); System.out.println(count + " " + classe.getSimpleName() + " " + serializerName); return true; }); }
@Mod.EventHandler public void onIMC(FMLInterModComms.IMCEvent event) { for (FMLInterModComms.IMCMessage msg : event.getMessages()) { IMCHandler.INSTANCE.handleMessage(msg); } IMCHandler.INSTANCE.imcCounts.forEachEntry((s, c) -> { Chisel.logger.info("Received {} IMC messages from mod {}.", c, s); return true; }); IMCHandler.INSTANCE.imcCounts.clear(); }
@ZenGetter("changedOutputs") public List<ChancedEntry> getChancedOutputs() { ArrayList<ChancedEntry> result = new ArrayList<>(); this.backingRecipe.getChancedOutputs().forEachEntry((stack, chance) -> result.add(new ChancedEntry(new MCItemStack(stack), chance))); return result; }