Class NoCustomer
java.lang.Object
petrolpark.mc.library.core.world.restaurant.customer.NoCustomer
- All Implemented Interfaces:
ICustomer,ICustomer.Provider
@ParametersAreNonnullByDefault
public class NoCustomer
extends Object
implements ICustomer, ICustomer.Provider
-
Nested Class Summary
Nested classes/interfaces inherited from interface petrolpark.mc.library.core.world.restaurant.customer.ICustomer
ICustomer.Provider, ICustomer.ProviderType -
Field Summary
Fields inherited from interface petrolpark.mc.library.core.world.restaurant.customer.ICustomer.Provider
CODEC, STREAM_CODEC, TYPED_CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancelOrder(net.minecraft.server.level.ServerLevel level, net.minecraft.world.entity.player.Player player) getDescription(net.minecraft.world.level.Level level, net.minecraft.client.gui.Font font, int maxWidth, int lineHeight) net.minecraft.network.chat.ComponentgetName()getOrder()longnet.minecraft.core.BlockPosnet.minecraft.core.Holder<Restaurant> booleanisNone()provideCustomer(net.minecraft.world.level.Level level) voidsupplyLootParams(net.minecraft.server.level.ServerLevel level, net.minecraft.world.level.storage.loot.LootParams.Builder builder) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface petrolpark.mc.library.core.world.restaurant.customer.ICustomer
tickWhileOrderItemHeldMethods inherited from interface petrolpark.mc.library.core.world.restaurant.customer.ICustomer.Provider
getUpdated
-
Constructor Details
-
NoCustomer
protected NoCustomer()
-
-
Method Details
-
isNone
public boolean isNone() -
getName
public net.minecraft.network.chat.Component getName() -
getPosition
public net.minecraft.core.BlockPos getPosition()- Specified by:
getPositionin interfaceICustomer
-
getProvider
- Specified by:
getProviderin interfaceICustomer
-
getRestaurant
- Specified by:
getRestaurantin interfaceICustomer
-
getTeamProvider
- Specified by:
getTeamProviderin interfaceICustomer
-
getOrder
-
getOrderTime
public long getOrderTime()- Specified by:
getOrderTimein interfaceICustomer
-
cancelOrder
public void cancelOrder(net.minecraft.server.level.ServerLevel level, net.minecraft.world.entity.player.Player player) - Specified by:
cancelOrderin interfaceICustomer
-
supplyLootParams
public void supplyLootParams(net.minecraft.server.level.ServerLevel level, net.minecraft.world.level.storage.loot.LootParams.Builder builder) - Specified by:
supplyLootParamsin interfaceICustomer
-
getDescription
public ClientRestaurantOrder.Description getDescription(net.minecraft.world.level.Level level, net.minecraft.client.gui.Font font, int maxWidth, int lineHeight) - Specified by:
getDescriptionin interfaceICustomer
-
provideCustomer
- Specified by:
provideCustomerin interfaceICustomer.Provider
-
getProviderType
- Specified by:
getProviderTypein interfaceICustomer.Provider
-