Attempt to fix 1.16.3 branch's issues on the repository
Added the original 'wayoftime' folder back, so see if that fixed the multiple folder issue.
This commit is contained in:
parent
6b4145a67c
commit
9fa68e86ae
224 changed files with 24047 additions and 0 deletions
116
src/main/java/wayoftime/bloodmagic/event/SoulNetworkEvent.java
Normal file
116
src/main/java/wayoftime/bloodmagic/event/SoulNetworkEvent.java
Normal file
|
@ -0,0 +1,116 @@
|
|||
package wayoftime.bloodmagic.event;
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.eventbus.api.Cancelable;
|
||||
import net.minecraftforge.eventbus.api.Event;
|
||||
import wayoftime.bloodmagic.core.data.SoulNetwork;
|
||||
import wayoftime.bloodmagic.core.data.SoulTicket;
|
||||
|
||||
public class SoulNetworkEvent extends Event
|
||||
{
|
||||
private final SoulNetwork network;
|
||||
private SoulTicket ticket;
|
||||
|
||||
public SoulNetworkEvent(SoulNetwork network, SoulTicket ticket)
|
||||
{
|
||||
this.network = network;
|
||||
this.ticket = ticket;
|
||||
}
|
||||
|
||||
public SoulNetwork getNetwork()
|
||||
{
|
||||
return network;
|
||||
}
|
||||
|
||||
public SoulTicket getTicket()
|
||||
{
|
||||
return ticket;
|
||||
}
|
||||
|
||||
public void setTicket(SoulTicket ticket)
|
||||
{
|
||||
this.ticket = ticket;
|
||||
}
|
||||
|
||||
@Cancelable
|
||||
public static class Syphon extends SoulNetworkEvent
|
||||
{
|
||||
private boolean shouldDamage;
|
||||
|
||||
public Syphon(SoulNetwork network, SoulTicket ticket)
|
||||
{
|
||||
super(network, ticket);
|
||||
}
|
||||
|
||||
public boolean shouldDamage()
|
||||
{
|
||||
return shouldDamage;
|
||||
}
|
||||
|
||||
public void setShouldDamage(boolean shouldDamage)
|
||||
{
|
||||
this.shouldDamage = shouldDamage;
|
||||
}
|
||||
|
||||
public static class Item extends Syphon
|
||||
{
|
||||
|
||||
private final ItemStack stack;
|
||||
|
||||
public Item(SoulNetwork network, SoulTicket ticket, ItemStack stack)
|
||||
{
|
||||
super(network, ticket);
|
||||
|
||||
this.stack = stack;
|
||||
}
|
||||
|
||||
public ItemStack getStack()
|
||||
{
|
||||
return stack;
|
||||
}
|
||||
}
|
||||
|
||||
public static class User extends Syphon
|
||||
{
|
||||
|
||||
private final PlayerEntity user;
|
||||
|
||||
public User(SoulNetwork network, SoulTicket ticket, PlayerEntity user)
|
||||
{
|
||||
super(network, ticket);
|
||||
|
||||
this.user = user;
|
||||
}
|
||||
|
||||
public PlayerEntity getUser()
|
||||
{
|
||||
return user;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Cancelable
|
||||
public static class Fill extends SoulNetworkEvent
|
||||
{
|
||||
|
||||
private int maximum;
|
||||
|
||||
public Fill(SoulNetwork network, SoulTicket ticket, int maximum)
|
||||
{
|
||||
super(network, ticket);
|
||||
|
||||
this.maximum = maximum;
|
||||
}
|
||||
|
||||
public int getMaximum()
|
||||
{
|
||||
return maximum;
|
||||
}
|
||||
|
||||
public void setMaximum(int maximum)
|
||||
{
|
||||
this.maximum = maximum;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue