All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.parzivail.util.gen.mc.MinecraftWorldView Maven / Gradle / Ivy

There is a newer version: 0.0.114+1.20.2
Show newest version
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