Initial work on the Attractor alchemy array. Very WIP and is not quite where I like it.
This commit is contained in:
parent
a35e4385ed
commit
ad546380a3
11 changed files with 895 additions and 6 deletions
|
@ -0,0 +1,48 @@
|
|||
package WayofTime.bloodmagic.fakePlayer;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.potion.PotionEffect;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.util.FakePlayer;
|
||||
import net.minecraftforge.fml.common.FMLCommonHandler;
|
||||
|
||||
import com.mojang.authlib.GameProfile;
|
||||
|
||||
/**
|
||||
* All credits for this go to CrazyPants, from EIO
|
||||
*/
|
||||
public class FakePlayerBM extends FakePlayer
|
||||
{
|
||||
ItemStack prevWeapon;
|
||||
|
||||
public FakePlayerBM(World world, BlockPos pos, GameProfile profile)
|
||||
{
|
||||
super(FMLCommonHandler.instance().getMinecraftServerInstance().worldServerForDimension(world.provider.getDimension()), profile);
|
||||
posX = pos.getX() + 0.5;
|
||||
posY = pos.getY() + 0.5;
|
||||
posZ = pos.getZ() + 0.5;
|
||||
connection = new FakeNetHandlerPlayServer(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onNewPotionEffect(PotionEffect p_70670_1_)
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onChangedPotionEffect(PotionEffect effect, boolean p_70695_2_)
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onFinishedPotionEffect(PotionEffect effect)
|
||||
{
|
||||
}
|
||||
|
||||
protected void playEquipSound(@Nullable ItemStack stack)
|
||||
{
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue