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

com.parzivail.util.block.rotating.WaterloggableRotatingBlock Maven / Gradle / Ivy

There is a newer version: 0.0.114+1.20.2
Show newest version
package com.parzivail.util.block.rotating;

import com.parzivail.util.block.WaterloggableBlock;
import net.minecraft.class_1750;
import net.minecraft.class_2248;
import net.minecraft.class_2415;
import net.minecraft.class_2470;
import net.minecraft.class_2680;
import net.minecraft.class_2689;
import net.minecraft.class_2741;
import net.minecraft.class_2753;

public class WaterloggableRotatingBlock extends WaterloggableBlock
{
	public static final class_2753 FACING = class_2741.field_12525;

	public WaterloggableRotatingBlock(class_2251 settings)
	{
		super(settings);
	}

	@Override
	public class_2680 method_9605(class_1750 ctx)
	{
		return super.method_9605(ctx).method_11657(FACING, ctx.method_8042().method_10153());
	}

	public class_2680 getPlacementStateBlockBased(class_1750 ctx)
	{
		return super.method_9605(ctx).method_11657(FACING, ctx.method_8038());
	}

	@Override
	public class_2680 method_9598(class_2680 state, class_2470 rotation)
	{
		return state.method_11657(FACING, rotation.method_10503(state.method_11654(FACING)));
	}

	@Override
	public class_2680 method_9569(class_2680 state, class_2415 mirror)
	{
		return state.method_26186(mirror.method_10345(state.method_11654(FACING)));
	}

	@Override
	protected void method_9515(class_2689.class_2690 builder)
	{
		super.method_9515(builder);
		builder.method_11667(FACING);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy