mirror of
https://github.com/FabricMC/fabric.git
synced 2025-04-01 01:30:00 -04:00
1.19.4-pre2
Just mapping updates
This commit is contained in:
parent
0abf393c29
commit
9003cbe9c4
4 changed files with 6 additions and 6 deletions
fabric-biome-api-v1/src/main/java/net/fabricmc/fabric
fabric-transfer-api-v1/src/main/java/net/fabricmc/fabric/mixin/transfer
gradle.properties
|
@ -27,13 +27,13 @@ import java.util.function.Function;
|
|||
import com.google.common.base.Preconditions;
|
||||
import com.mojang.datafixers.util.Pair;
|
||||
|
||||
import net.minecraft.class_8197;
|
||||
import net.minecraft.registry.RegistryKey;
|
||||
import net.minecraft.world.biome.Biome;
|
||||
import net.minecraft.world.biome.source.MultiNoiseBiomeSourceParameterList;
|
||||
import net.minecraft.world.biome.source.util.MultiNoiseUtil;
|
||||
|
||||
/**
|
||||
* Internal data for modding Vanilla's {@link class_8197.Preset#NETHER}.
|
||||
* Internal data for modding Vanilla's {@link MultiNoiseBiomeSourceParameterList.Preset#NETHER}.
|
||||
*/
|
||||
public final class NetherBiomeData {
|
||||
// Cached sets of the biomes that would generate from Vanilla's default biome source without consideration
|
||||
|
@ -53,7 +53,7 @@ public final class NetherBiomeData {
|
|||
}
|
||||
|
||||
public static boolean canGenerateInNether(RegistryKey<Biome> biome) {
|
||||
return class_8197.Preset.NETHER.method_49514().anyMatch(input -> input.equals(biome));
|
||||
return MultiNoiseBiomeSourceParameterList.Preset.NETHER.biomeStream().anyMatch(input -> input.equals(biome));
|
||||
}
|
||||
|
||||
private static void clearBiomeSourceCache() {
|
||||
|
|
|
@ -29,7 +29,7 @@ import net.minecraft.world.biome.source.util.MultiNoiseUtil;
|
|||
|
||||
import net.fabricmc.fabric.impl.biome.NetherBiomeData;
|
||||
|
||||
@Mixin(targets = "net/minecraft/class_8197$Preset$1")
|
||||
@Mixin(targets = "net/minecraft/world/biome/source/MultiNoiseBiomeSourceParameterList$Preset$1")
|
||||
public class NetherBiomePresetMixin {
|
||||
@Inject(method = "apply", at = @At("RETURN"), cancellable = true)
|
||||
public <T> void apply(Function<RegistryKey<Biome>, T> function, CallbackInfoReturnable<MultiNoiseUtil.Entries<T>> cir) {
|
||||
|
|
|
@ -86,7 +86,7 @@ public class HopperBlockEntityMixin {
|
|||
if (inputInventory != null) return;
|
||||
|
||||
// Otherwise inject our transfer logic.
|
||||
BlockPos sourcePos = BlockPos.method_49637(hopper.getHopperX(), hopper.getHopperY() + 1.0D, hopper.getHopperZ());
|
||||
BlockPos sourcePos = BlockPos.ofFloored(hopper.getHopperX(), hopper.getHopperY() + 1.0D, hopper.getHopperZ());
|
||||
Storage<ItemVariant> source = ItemStorage.SIDED.find(world, sourcePos, Direction.DOWN);
|
||||
|
||||
if (source != null) {
|
||||
|
|
|
@ -3,7 +3,7 @@ org.gradle.parallel=true
|
|||
fabric.loom.multiProjectOptimisation=true
|
||||
|
||||
version=0.75.1
|
||||
minecraft_version=1.19.4-pre1
|
||||
minecraft_version=1.19.4-pre2
|
||||
yarn_version=+build.1
|
||||
loader_version=0.14.14
|
||||
installer_version=0.11.1
|
||||
|
|
Loading…
Add table
Reference in a new issue