com.parzivail.util.block.rotating.HorizontalFacingBlock 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.block.rotating;
import net.minecraft.class_1750;
import net.minecraft.class_2248;
import net.minecraft.class_2350;
import net.minecraft.class_2415;
import net.minecraft.class_2470;
import net.minecraft.class_2680;
import net.minecraft.class_2689;
import net.minecraft.class_2753;
import net.minecraft.class_4970;
public class HorizontalFacingBlock extends class_2248
{
public static final class_2753 FACING = net.minecraft.class_2383.field_11177;
protected HorizontalFacingBlock(class_4970.class_2251 settings)
{
super(settings);
this.method_9590(this.field_10647.method_11664().method_11657(FACING, class_2350.field_11043));
}
@Override
public class_2680 method_9605(class_1750 ctx)
{
return this.method_9564().method_11657(FACING, ctx.method_8042().method_10153());
}
@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