2020-09-27 18:49:08 +02:00
|
|
|
package com.minelittlepony.unicopia.mixin;
|
|
|
|
|
2021-08-19 21:24:42 +02:00
|
|
|
import org.spongepowered.asm.mixin.Final;
|
2020-09-27 18:49:08 +02:00
|
|
|
import org.spongepowered.asm.mixin.Mixin;
|
2021-08-19 21:24:42 +02:00
|
|
|
import org.spongepowered.asm.mixin.Mutable;
|
|
|
|
import org.spongepowered.asm.mixin.Shadow;
|
|
|
|
|
|
|
|
import com.minelittlepony.unicopia.entity.behaviour.FallingBlockBehaviour;
|
2020-09-27 18:49:08 +02:00
|
|
|
|
|
|
|
import net.minecraft.block.entity.BlockEntity;
|
2021-08-04 15:38:03 +02:00
|
|
|
import net.minecraft.util.math.BlockPos;
|
2020-09-27 18:49:08 +02:00
|
|
|
|
|
|
|
@Mixin(BlockEntity.class)
|
2021-08-19 21:24:42 +02:00
|
|
|
abstract class MixinBlockEntity implements FallingBlockBehaviour.Positioned {
|
|
|
|
@Shadow
|
|
|
|
@Mutable
|
|
|
|
private @Final BlockPos pos;
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void setPos(BlockPos pos) {
|
|
|
|
this.pos = pos;
|
|
|
|
}
|
2020-09-27 18:49:08 +02:00
|
|
|
}
|