This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static final ScreenHandlerType<DigitalCameraScreenHandler> DIGITAL_CAMERA = ScreenHandlerRegistry.registerSimple(new Identifier(Info.MODID, "digital_camera"), DigitalCameraScreenHandler::new); | |
ScreenRegistry.register(COScreenHandlers.DIGITAL_CAMERA, DigitalCameraScreen::new); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> Configure project : | |
Fabric Loom: 0.4.3 Build(jenkins #3) | |
:setting up loom dependencies | |
:merging jars | |
FAILURE: Build failed with an exception. | |
* What went wrong: | |
A problem occurred configuring root project 'BetterWorldList'. | |
> Failed to notify project evaluation listener. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static ArrayList<String> getAvailableLanguages() { | |
ArrayList<String> list = new ArrayList<String>(); | |
File dir; | |
try { | |
dir = new File(Paths.get(I18n.class.getProtectionDomain().getCodeSource().getLocation().toURI()).resolve("lang").toString()); | |
try (DirectoryStream<Path> stream = Files.newDirectoryStream(dir.toPath(), "*.json")) { | |
for (Path file : stream) { | |
String fileName = file.getFileName().toString().substring(0, file.getFileName().toString().length() - 5); | |
list.add(fileName); | |
try (InputStream inputStream = Files.newInputStream(new File(Paths.get(I18n.class.getProtectionDomain().getCodeSource().getLocation().toURI()).resolve("lang/" + file.getFileName()).toString()).toPath())) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package cuchaz.enigma.utils; | |
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.nio.charset.StandardCharsets; | |
import java.util.ArrayList; | |
import java.util.Collections; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package hugman.mubble.mixin; | |
import java.util.Map; | |
import org.spongepowered.asm.mixin.Mixin; | |
import org.spongepowered.asm.mixin.Shadow; | |
import com.google.common.collect.ImmutableMap.Builder; | |
import hugman.mubble.init.MubbleBlocks; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.fabriccommunity.spookytime.mixin; | |
import java.util.List; | |
import org.spongepowered.asm.mixin.Mixin; | |
import org.spongepowered.asm.mixin.injection.At; | |
import org.spongepowered.asm.mixin.injection.Inject; | |
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; | |
import com.fabriccommunity.spookytime.registry.SpookyDimensions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.yanis48.minalchemy.recipe; | |
import com.yanis48.minalchemy.init.MinalchemyBlocks; | |
import com.yanis48.minalchemy.init.MinalchemyRecipes; | |
import net.fabricmc.api.EnvType; | |
import net.fabricmc.api.Environment; | |
import net.minecraft.inventory.Inventory; | |
import net.minecraft.item.ItemStack; | |
import net.minecraft.recipe.Ingredient; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.yanis48.minalchemy.recipe; | |
import com.yanis48.minalchemy.init.MinalchemyBlocks; | |
import com.yanis48.minalchemy.init.MinalchemyRecipes; | |
import net.fabricmc.api.EnvType; | |
import net.fabricmc.api.Environment; | |
import net.minecraft.inventory.Inventory; | |
import net.minecraft.item.ItemStack; | |
import net.minecraft.recipe.Ingredient; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.yanis48.minalchemy.recipe; | |
import com.yanis48.minalchemy.init.MinalchemyBlocks; | |
import com.yanis48.minalchemy.init.MinalchemyRecipes; | |
import net.fabricmc.api.EnvType; | |
import net.fabricmc.api.Environment; | |
import net.minecraft.inventory.Inventory; | |
import net.minecraft.item.ItemStack; | |
import net.minecraft.recipe.Ingredient; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.yanis48.minalchemy.container; | |
import java.util.Optional; | |
import com.yanis48.minalchemy.init.MinalchemyBlocks; | |
import com.yanis48.minalchemy.init.MinalchemyRecipes; | |
import com.yanis48.minalchemy.init.MinalchemyTags; | |
import com.yanis48.minalchemy.recipe.AlchemyRecipe; | |
import net.minecraft.block.Blocks; |
NewerOlder