com.parzivail.util.gen.mc.MinecraftChunkView Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pswg Show documentation
Show all versions of pswg Show documentation
Explore the galaxy with Galaxies: Parzi's Star Wars Mod!
package com.parzivail.util.gen.mc;
import com.parzivail.util.gen.world.ChunkView;
import net.minecraft.class_1297;
import net.minecraft.class_1923;
import net.minecraft.class_2338;
import net.minecraft.class_2586;
import net.minecraft.class_2680;
import net.minecraft.class_2791;
import net.minecraft.class_2902;
import net.minecraft.class_3610;
import org.jetbrains.annotations.Nullable;
public record MinecraftChunkView(class_2791 chunk) implements ChunkView
{
@Override
public class_1923 getChunkPos()
{
return chunk.method_12004();
}
@Override
public int sampleHeightmap(class_2902.class_2903 type, int x, int z)
{
return chunk.method_12005(type, x, z);
}
@Override
public void setBlockState(class_2338 pos, class_2680 state)
{
chunk.method_12010(pos, state, false);
}
@Override
public void setBlockEntity(class_2586 blockEntity)
{
chunk.method_12007(blockEntity);
}
@Override
public void addEntity(class_1297 entity)
{
chunk.method_12002(entity);
}
@Nullable
@Override
public class_2586 method_8321(class_2338 pos)
{
return chunk.method_8321(pos);
}
@Override
public class_2680 method_8320(class_2338 pos)
{
return chunk.method_8320(pos);
}
@Override
public class_3610 method_8316(class_2338 pos)
{
return chunk.method_8316(pos);
}
@Override
public int method_31605()
{
return chunk.method_31605();
}
@Override
public int method_31607()
{
return chunk.method_31607();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy