com.parzivail.util.block.rotating.WaterloggableRotatingBlock 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 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