mapping
This commit is contained in:
1 parent
3756ca9f86
commit
5dd2a12aa7
20 files changed
+61
-79
No files matched your search
@@ -33,7 +33,7 @@ public abstract class FluidBlock_renewableBlackstoneMixin
|
||||
for(Direction direction : Direction.values())
|
||||
{
|
||||
if (direction != Direction.DOWN) {
|
||||
BlockPos blockPos = pos.method_35851(direction); // offset
|
||||
BlockPos blockPos = pos.offset(direction); // offset
|
||||
if (world.getBlockState(blockPos).isOf(Blocks.BLUE_ICE)) {
|
||||
world.setBlockState(pos, Blocks.BLACKSTONE.getDefaultState());
|
||||
playExtinguishSound(world, pos);
|
||||
|
||||
@@ -36,7 +36,7 @@ public abstract class HopperBlockEntityMixin extends LootableContainerBlockEntit
|
||||
if (CarpetSettings.hopperCounters) {
|
||||
DyeColor wool_color = WoolTool.getWoolColorAtPosition(
|
||||
world,
|
||||
blockPos.method_35851(blockState.get(HopperBlock.FACING))); // offset
|
||||
blockPos.offset(blockState.get(HopperBlock.FACING))); // offset
|
||||
if (wool_color != null)
|
||||
{
|
||||
for (int i = 0; i < inventory.size(); ++i)
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
package carpet.mixins;
|
||||
|
||||
import carpet.fakes.InventoryBearerInterface;
|
||||
import net.minecraft.entity.mob.PillagerEntity;
|
||||
import net.minecraft.inventory.Inventory;
|
||||
import net.minecraft.inventory.SimpleInventory;
|
||||
import org.spongepowered.asm.mixin.Final;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.Shadow;
|
||||
|
||||
@Mixin(PillagerEntity.class)
|
||||
public class PillagerEntity_scarpetMixin implements InventoryBearerInterface
|
||||
{
|
||||
@Shadow @Final private SimpleInventory inventory;
|
||||
|
||||
@Override
|
||||
public Inventory getCMInventory()
|
||||
{
|
||||
return inventory;
|
||||
}
|
||||
}
|
||||
@@ -196,7 +196,7 @@ public abstract class PistonHandler_customStickyMixin
|
||||
// stickyDirection = blockState_1.get(FacingBlock.FACING);
|
||||
//}
|
||||
|
||||
return stickyDirection == null || this.tryMove(blockPos_1.method_35851(stickyDirection), stickyDirection); //offset
|
||||
return stickyDirection == null || this.tryMove(blockPos_1.offset(stickyDirection), stickyDirection); //offset
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ public abstract class StructureFeatureMixin<C extends FeatureConfig> implements
|
||||
structurestart.generateStructure(world, world.getStructureAccessor(), generator, rand,box, new ChunkPos(j, k));
|
||||
}
|
||||
//structurestart.notifyPostProcessAt(new ChunkPos(j, k));
|
||||
int i = Math.max(box.getBlockCountY(),box.getBlockCountX())/16+1; // X Z
|
||||
int i = Math.max(box.getBlockCountX(),box.getBlockCountZ())/16+1;
|
||||
|
||||
//int i = getRadius();
|
||||
for (int k1 = j - i; k1 <= j + i; ++k1)
|
||||
|
||||
Reference in new issue
Block a user