com.parzivail.util.gen.mc.MinecraftWorldView 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.WorldGenView;
import net.minecraft.class_1297;
import net.minecraft.class_2338;
import net.minecraft.class_2680;
import net.minecraft.class_2902;
import net.minecraft.class_5281;
public class MinecraftWorldView implements WorldGenView
{
private final class_5281 world;
public MinecraftWorldView(class_5281 world)
{
this.world = world;
}
@Override
public class_2680 getBlockState(class_2338 pos)
{
return world.method_8320(pos);
}
@Override
public int getTopY(class_2902.class_2903 type, int x, int z)
{
return world.method_8624(type, x, z);
}
@Override
public void setBlockState(class_2338 pos, class_2680 state)
{
world.method_8652(pos, state, 3);
}
@Override
public void addEntity(class_1297 entity)
{
world.method_8649(entity);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy