Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable caps for FakeLevel #113

Open
wants to merge 1 commit into
base: version/main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 61 additions & 21 deletions src/main/java/com/ldtteam/common/fakelevel/FakeLevel.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
import net.minecraft.world.scores.Scoreboard;
import net.minecraft.world.ticks.BlackholeTickAccess;
import net.minecraft.world.ticks.LevelTickAccess;
import net.neoforged.neoforge.capabilities.BlockCapability;
import net.neoforged.neoforge.client.model.data.ModelData;
import net.neoforged.neoforge.client.model.data.ModelDataManager;
import org.jetbrains.annotations.Nullable;
Expand Down Expand Up @@ -807,26 +806,6 @@ public void updateSkyBrightness()
// Noop
}

@Override
@Nullable
public <T, C> T getCapability(BlockCapability<T, C> cap, BlockPos pos, C context)
{
// Noop
return null;
}

@Override
@Nullable
public <T, C> T getCapability(BlockCapability<T, C> cap,
BlockPos pos,
@Nullable BlockState state,
@Nullable BlockEntity blockEntity,
C context)
{
// Noop
return null;
}

@Override
public void invalidateCapabilities(BlockPos pos)
{
Expand Down Expand Up @@ -2090,5 +2069,66 @@ public <T> Optional<T> getExistingData(Supplier<AttachmentType<T>> type)
{
return super.removeData(type);
}

@Override
protected long advanceDaytime()
{
return super.advanceDaytime();
}

@Override
public <T> Optional<Reference<T>> holder(ResourceKey<T> key)
{
return super.holder(key);
}

@Override
public <T> Holder<T> holderOrThrow(ResourceKey<T> key)
{
return super.holderOrThrow(key);
}

@Override
public Component getDescription()
{
return super.getDescription();
}

@Override
public String getDescriptionKey()
{
return super.getDescriptionKey();
}

@Override
public <T> @Nullable T getCapability(BlockCapability<T, @Nullable Void> cap, BlockPos pos)
{
return super.getCapability(cap, pos);
}

@Override
public <T, C> @Nullable T getCapability(BlockCapability<T, C> cap, BlockPos pos, C context)
{
return super.getCapability(cap, pos, context);
}

@Override
public <T> @Nullable T getCapability(BlockCapability<T, @Nullable Void> cap,
BlockPos pos,
@Nullable BlockState state,
@Nullable BlockEntity blockEntity)
{
return super.getCapability(cap, pos, state, blockEntity);
}

@Override
public <T, C> @Nullable T getCapability(BlockCapability<T, C> cap,
BlockPos pos,
@Nullable BlockState state,
@Nullable BlockEntity blockEntity,
C context)
{
return super.getCapability(cap, pos, state, blockEntity, context);
}
*/
}
Loading