Gateway stuff
This commit is contained in:
parent
059b6bd2a8
commit
d6e61e5b4c
5 changed files with 11 additions and 5 deletions
|
@ -25,10 +25,12 @@ import org.dimdev.dimdoors.listener.pocket.UseItemCallbackListener;
|
|||
import org.dimdev.dimdoors.listener.pocket.UseItemOnBlockCallbackListener;
|
||||
import org.dimdev.dimdoors.network.ExtendedServerPlayNetworkHandler;
|
||||
import org.dimdev.dimdoors.particle.ModParticleTypes;
|
||||
import org.dimdev.dimdoors.pockets.DefaultDungeonDestinations;
|
||||
import org.dimdev.dimdoors.pockets.PocketLoader;
|
||||
import org.dimdev.dimdoors.pockets.generator.PocketGenerator;
|
||||
import org.dimdev.dimdoors.pockets.modifier.Modifier;
|
||||
import org.dimdev.dimdoors.pockets.virtual.VirtualSingularPocket;
|
||||
import org.dimdev.dimdoors.rift.targets.RandomTarget;
|
||||
import org.dimdev.dimdoors.rift.targets.Targets;
|
||||
import org.dimdev.dimdoors.rift.targets.VirtualTarget;
|
||||
import org.dimdev.dimdoors.sound.ModSoundEvents;
|
||||
|
|
|
@ -9,6 +9,7 @@ import org.dimdev.dimdoors.block.door.data.DoorDataReader;
|
|||
import org.dimdev.dimdoors.api.client.DefaultTransformation;
|
||||
import org.dimdev.dimdoors.api.client.Transformer;
|
||||
import org.dimdev.dimdoors.item.RiftKeyItem;
|
||||
import org.dimdev.dimdoors.pockets.DefaultDungeonDestinations;
|
||||
import org.dimdev.dimdoors.rift.registry.Rift;
|
||||
import org.dimdev.dimdoors.rift.targets.EscapeTarget;
|
||||
import org.dimdev.dimdoors.api.util.EntityUtils;
|
||||
|
@ -162,8 +163,8 @@ public class EntranceRiftBlockEntity extends RiftBlockEntity {
|
|||
if (ModDimensions.isLimboDimension(world)) {
|
||||
this.setDestination(ESCAPE_TARGET);
|
||||
} else {
|
||||
this.setDestination(DoorDataReader.GOLD_DIMDOOR_TARGET);
|
||||
this.setProperties(DoorDataReader.GOLD_DIMDOOR_PROPERTIES);
|
||||
this.setDestination(DefaultDungeonDestinations.GATEWAY_DESTINATION);
|
||||
this.setProperties(DefaultDungeonDestinations.POCKET_LINK_PROPERTIES);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -76,19 +76,22 @@ public abstract class VirtualSingularPocket implements VirtualPocket {
|
|||
public static final String KEY = "none";
|
||||
public static final NoneVirtualPocket NONE = new NoneVirtualPocket();
|
||||
|
||||
private NoneVirtualPocket() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public Pocket prepareAndPlacePocket(PocketGenerationContext parameters) {
|
||||
throw new UnsupportedOperationException("Cannot call this method on a NoneVirtualPocket");
|
||||
throw new UnsupportedOperationException("Cannot place a NoneVirtualPocket");
|
||||
}
|
||||
|
||||
@Override
|
||||
public PocketGeneratorReference getNextPocketGeneratorReference(PocketGenerationContext parameters) {
|
||||
throw new UnsupportedOperationException("Cannot call this method on a NoneVirtualPocket");
|
||||
throw new UnsupportedOperationException("Cannot get next pocket generator reference on a NoneVirtualPocket");
|
||||
}
|
||||
|
||||
@Override
|
||||
public PocketGeneratorReference peekNextPocketGeneratorReference(PocketGenerationContext parameters) {
|
||||
throw new UnsupportedOperationException("Cannot call this method on a NoneVirtualPocket");
|
||||
throw new UnsupportedOperationException("Cannot peek next pocket generator reference on a NoneVirtualPocket");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue