Skip to content

Commit

Permalink
allow qcontroller and energy acceptor to be rotated on all sides
Browse files Browse the repository at this point in the history
proxy and extender should not rotate
  • Loading branch information
ghzdude committed Dec 22, 2023
1 parent ff0cf71 commit b882fc8
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ protected boolean openGUIOnRightClick() {
return false;
}

@Override
public boolean isValidFrontFacing(EnumFacing facing) {
return true;
}

@Override
public Type getType() {
return Type.ENERGY;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.network.PacketBuffer;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.ResourceLocation;

import codechicken.lib.render.CCRenderState;
Expand Down Expand Up @@ -52,6 +53,11 @@ protected boolean openGUIOnRightClick() {
return false;
}

@Override
public boolean hasFrontFacing() {
return false;
}

@Override
public Type getType() {
return Type.EXTENDER;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ protected boolean openGUIOnRightClick() {
return false;
}

@Override
public boolean hasFrontFacing() {
return false;
}

@SuppressWarnings("unchecked")
@Override
public <T> T getCapability(Capability<T> capability, EnumFacing side) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@ protected boolean openGUIOnRightClick() {
return false;
}

@Override
public boolean isValidFrontFacing(EnumFacing facing) {
return true;
}

@SuppressWarnings("SameParameterValue")
private IQuantumStorage<?> getStorage(BlockPos pos, boolean rebuild) {
if (getWorld().isRemote) return null;
Expand Down

0 comments on commit b882fc8

Please sign in to comment.