Sign in to follow this
Followers
0
[1.7.10][SOLVED] Problem with custom rendered Block after Exporting to.jar
By
Pythonschlange, in Modder Support
-
Recently Browsing
No registered users viewing this page.
-
Posts
-
Its kinda working now but how can i choose which of a default one slots i want to use. For example i dont need mainhand and offhand slots or i just shouldn't use it as an index in my container?
-
My constructor looks like this now. public ItemStackHandler handlerCustom; public IItemHandler handlerDefault; public IItemHandler both; LazyOptional<IItemHandler> optional; public WhoreEntity(EntityType<? extends WhoreEntity> type, World worldIn) { super(type, worldIn); handlerCustom = new ItemStackHandler(1); //1 handlerDefault = super.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY,Direction.EAST).orElseThrow(null); both = new CombinedInvWrapper(handlerCustom, ((IItemHandlerModifiable) handlerDefault)); optional = LazyOptional.of(() -> both); } And my Override getCapability. I dont sure what is facing means @Nonnull @Override public <T> LazyOptional<T> getCapability(@Nonnull Capability<T> cap, @Nullable Direction side) { if(cap == CapabilityItemHandler.ITEM_HANDLER_CAPABILITY && side != null) { return (LazyOptional<T>)optional; } return super.getCapability(cap, side); } Did i do that all right?
-
By poopoodice · Posted
It sends a packet to all/tracking clients, you should be able to do the same thing but without sending to the specific player. -
I have an item which I want to spawn a specific particle for the user, and then a separate particle for other players. Spawning one exclusively for the player using is easy enough, but spawning a particle server side has no way to exclude a specific player. Is there a way to do this without reflection?
-
-
Topics
-
Who's Online (See full list)